[Qt-interest] QCursor::setPos very slow on OSX

Ender EREL erelender at yahoo.com
Tue Sep 8 10:56:32 CEST 2009


I don't know the solution to your problem but I have a suggestion. The 
behaviour you explained exists in 3D Studio Max. When dragging the 
cursor, if the mouse hits a border of the screen, it is positioned on 
the opposite border as if the screen surface wraps around its own. So, 
when the mouse passes the right border, it comes out of the left border 
and dragging continues smoothly.

If you implement it this way, only one call to setPos will be needed 
instead of numerous calls when the mouse passes a border. Also, 
personally i find that approach more intuitive. Dragging (cahnging the 
value) without the cursor moving feels a bit odd.

As i said, this is not a solution, more like a workaround.

Best Regards.

-- 
Ender EREL



More information about the Qt-interest-old mailing list