[PyKDE] Rotating/transforming widgets

Johannes Sixt johannes.sixt at telecom.at
Thu May 22 22:17:01 BST 2003


On Donnerstag, 22. Mai 2003 06:54, Vio wrote:
> I am trying to rotate (and possibly apply other transforms) to the
> QTextEdit widget (and its parent QFrame). Is this at all possible? From
> the 'aclock.py' example, it "sounds" possible, using a QPainter and a
> QWMatrix. But on closer look I can only rotate/transform simple
> text/images directly drawn by a QPainter inside the target widget's
> reimplemented paintEvent(). While what I want is to rotate the widget
> itself, let's say around its center. And I also want the QVBoxLayout
> instance to still manage the widget's layout.

It is not possible to rotate the widgets themselves.

You could get close to it, but then you would be programming Xlib directly 
using the Shape extension, and not PyQt. (And forget QVBoxLayout then.)

-- Hannes




More information about the PyQt mailing list