PDA

View Full Version : How to fix an Item on QgraphicsView hole.



Zikoel
18th September 2011, 18:18
Hi,

I have a large scene with many items inside. The user can navigate on in by scrolling and other but I wish that an my custom object remain alway on the top-left of the QGraphicsView hole. What is the manner for to do this?

Thank you all.

norobro
18th September 2011, 20:49
Two ways to accomplish this are described in this thread (http://www.qtcentre.org/threads/44154-How-to-draw-QGraphicsItem-at-the-same-location?highlight=setPos).