[Qt-interest] How not to set the cursor
Damon Wischik
d.wischik at cs.ucl.ac.uk
Tue May 4 19:21:09 CEST 2010
I have written a drawing program in PyQt4, which takes advantage of the
Windows API for pen/ink. My program creates an msinkaut.InkCollector COM
object to collect ink, and periodically extracts the ink that has been
collected.
My problem is that Qt and Windows fight over the cursor shape.
When the InkCollector is active, Windows tries to set the cursor to be
the default writing cursor, a black dot. But Qt also tries to set the
cursor, to be whatever setCursor has chosen. The outcome is that the
cursor flickers while it moves. At rest Qt wins the battle, and while
writing Windows wins the battle.
How can I tell Qt not to try to set the cursor?
Damon.
More information about the Qt-interest-old
mailing list