[Qt-interest] QGraphicsView: Drawing at its particular location again and again while keeping some part of it intact??
Usman Ajmal
uzmanajmal at gmail.com
Thu Jul 16 06:40:35 CEST 2009
Hi again :)
I am facing a problem in drawing at two different location of same
GraphicsView widget.
My Graphics View geometery is let say (0,0,100,100)
i set my scene rectangle to (-50,-50,100,100). Then i draw a rectangle (say
A) in left half of the Graphics View Widget. After this i draw a rectangle
(say B) in right half of the Widget. Now i don't like this rectangle B and i
want to remove and draw another rectangle (say B*) in place of it "*while
keeping the rectangle A untouched*".
Is there anyway by which i can like 'lock' the rectangle A so even if now i
create new object of my scene by 'newGraphicsScene', for the creation of B*,
my rectangle A may not vanish.
I tried setting rect to right half of the GraphicsView Widget by
> setSceneRect(0,-50,50,100)
but this vanished my rectangle A, which i did not want.
Is there any way to solve this problem?
Bundle of thanks
--
Usman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090716/32123d90/attachment.html
More information about the Qt-interest-old
mailing list