[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Rotating/transforming widgets
From:       Johannes Sixt <johannes.sixt () telecom ! at>
Date:       2003-05-22 19:57:09
[Download RAW message or body]

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic