[Qt-interest] Detect hand scrolling in QGraphicsItem::paint()

Stephen Chu stephen at ju-ju.com
Mon Oct 26 19:40:13 CET 2009


Is there a way to know if the current call to my paint() function is 
during a user hand scrolling?

I am displaying a huge image and want the app to be responsive while 
user is drag-scrolling the image. The idea is to plot only a low-res 
version of the image while the user is dragging it around and repaint it 
with proper res one after the user let go of the button.

So basically I need to know when the user starts and stops hand-dragging 
the QGraphicsView that contains my custom QGraphicsItem.

Thanks.

-- 
Stephen Chu



More information about the Qt-interest-old mailing list