[PyQt] explanatory label in a not uniformly scaled QGraphicsView

Hans-Peter Jansen hpj at urpla.net
Wed Feb 9 21:09:01 GMT 2011


On Wednesday 09 February 2011, 15:06:24 KONTRA, Gergely wrote:
> Hi all!
>
> Is there a way to place a text on a QGraphicsView, which always looks
> the same size (say 10px) on screen, regardless of the scaling applied
> to the View?

Gergo, this is exactly a case, where studying the Qt source is most 
helpful. Probably you can just subclass and reimplement the object of 
your liking, that doesn't apply the scaling in the paint event...

Pete


More information about the PyQt mailing list