summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-07-07 13:45:15 +0200
committerNorwegian Rock Cat <qt-info@nokia.com>2009-07-07 13:45:15 +0200
commit20b2c6bd8e6f6a7ef384f4b478623768c11e01ae (patch)
treedfbec22200dc3c7ba522e0d32ff6a381555e2819 /src
parent343e8b7e75c98a4fd1b692a230de8d1132988705 (diff)
Document limitation in Cocoa cursor handling.
It seems there is a bug in AppKit which will automatically reset a cursor even when it is grabbed, but won't reset it when it's brought back into the window. The upshot of this is that doing a setCursor() inside of mouse handling behaves slightly different than on the other platforms (including Carbon). However, we are at the mercy of Cocoa here and I would rather have all the other things AppKit does right and live with this bug which they may fix some day.
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index e6a5ae049b..9d40b00fd4 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -4590,6 +4590,11 @@ void QWidget::unsetLayoutDirection()
By default, this property contains a cursor with the Qt::ArrowCursor
shape.
+ Some underlying window implementations will reset the cursor if it
+ leaves a widget even if the mouse is grabbed. If you want to have
+ a cursor set for all widgets, even when outside the window, consider
+ QApplication::setOverrideCursor().
+
\sa QApplication::setOverrideCursor()
*/