[Qt-interest] updating QGraphicsScene
Deepak Chandran
dchandran1 at yahoo.com
Mon Aug 31 08:13:40 CEST 2009
Where do I call the update? The QGraphicsView is doing the scrolling -- do I need to create a new class that inherits from QGraphicsView and then call the update() in the scroll event of that new class? I suppose that might work, although I though there might be a better solution.
________________________________
From: "ri at eeda.denso.co.jp" <ri at eeda.denso.co.jp>
To: dchandran1 at yahoo.com
Sent: Sunday, August 30, 2009 8:01:01 PM
Subject: RE: [Qt-interest] updating QGraphicsScene
you can try calling update() .
________________________________
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Deepak
Chandran
Sent: Monday, August 31, 2009 8:22 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] updating
QGraphicsScene
I need to draw a grid on the background of a QGraphicsScene. I can draw the
grid by overwriting the drawBackground(...) method. But the scene does not
update when I scroll up and down. Should I use the drawBackground() method in
QGraphicsView instead? Or is there any other way to perform the
update?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090830/c9b27097/attachment.html
More information about the Qt-interest-old
mailing list