diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-07-07 11:45:15 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-07-07 11:45:15 (GMT) |
commit | 20b2c6bd8e6f6a7ef384f4b478623768c11e01ae (patch) | |
tree | dfbec22200dc3c7ba522e0d32ff6a381555e2819 /src/gui/kernel/qwidget.cpp | |
parent | 343e8b7e75c98a4fd1b692a230de8d1132988705 (diff) | |
download | Qt-20b2c6bd8e6f6a7ef384f4b478623768c11e01ae.zip Qt-20b2c6bd8e6f6a7ef384f4b478623768c11e01ae.tar.gz Qt-20b2c6bd8e6f6a7ef384f4b478623768c11e01ae.tar.bz2 |
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/gui/kernel/qwidget.cpp')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index e6a5ae0..9d40b00 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() */ |