[Qt-interest] Using QTimers during a QDrag

Daniel Price daniel.price at fxhome.com
Fri Jul 30 15:23:23 CEST 2010


We're using a QTimer to auto-scroll some Qt views (trees, graphics views etc) and it works fine except during a drag when on Windows, the timer stops calling it's slot at the requested frequency. It does fire off signals but at a greatly reduced rate resulting in jerky scrolling.

According to the docs, QDrag::exec blocks the Windows event loop. However, processEvents is still periodically called from within Qt to allow some events, including timers, to work.

I've tried using separate QThreads, QBasicTimer and even Win32 API TimerQueues and straight callback functions to get around the problem but they all have the same issue; the event loop is blocked.

Is there any solution to this? Short of not using QDrag and creating our own drag and drop system (not practical). It only happens on Windows.



Daniel Price
Software Engineer
FXhome Limited

daniel.price at fxhome.com<mailto:tim.edwards at fxhome.com>
http://fxhome.com


________________________________
This email is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you are not the intended recipient please notify the sender. Please delete the message from all places in your computer where it is stored. You should not copy the email or use it for any purpose or disclose its contents to any other person.To do so may be unlawful. Email is an informal means of communicating and may be subject to data corruption accidentally or deliberately. For this reason it is inappropriate to rely on advice contained in an email without obtaining written confirmation of it first.

FXhome Limited is a limited company registered in England and Wales. Registered number: 04172812. Registered office: The Henderson Business Centre, Ivy Road, Norwich, Norfolk, NR5 8BF, U.K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100730/b2c9974c/attachment.html 


More information about the Qt-interest-old mailing list