docs: Explain the limitations of QWidget::grabMouse() on Windows
Because carbon is dead, I merged both OSX and Windows in the same note. Change-Id: I5d43c5fce30e187f63a1e3e5af688c344eb80d28 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
parent
d62cd6508a
commit
5c5f43e95b
@ -12392,10 +12392,9 @@ static void releaseMouseGrabOfWidget(QWidget *widget)
|
|||||||
\note Only visible widgets can grab mouse input. If isVisible()
|
\note Only visible widgets can grab mouse input. If isVisible()
|
||||||
returns \c false for a widget, that widget cannot call grabMouse().
|
returns \c false for a widget, that widget cannot call grabMouse().
|
||||||
|
|
||||||
\note \b{(Mac OS X developers)} For \e Cocoa, calling
|
\note On Windows, grabMouse() only works when the mouse is inside a window
|
||||||
grabMouse() on a widget only works when the mouse is inside the
|
owned by the process.
|
||||||
frame of that widget. For \e Carbon, it works outside the widget's
|
On OS X, grabMouse() only works when the mouse is inside the frame of that widget.
|
||||||
frame as well, like for Windows and X11.
|
|
||||||
|
|
||||||
\sa releaseMouse(), grabKeyboard(), releaseKeyboard()
|
\sa releaseMouse(), grabKeyboard(), releaseKeyboard()
|
||||||
*/
|
*/
|
||||||
@ -12416,7 +12415,7 @@ void QWidget::grabMouse()
|
|||||||
|
|
||||||
\warning Grabbing the mouse might lock the terminal.
|
\warning Grabbing the mouse might lock the terminal.
|
||||||
|
|
||||||
\note \b{(Mac OS X developers)} See the note in QWidget::grabMouse().
|
\note See the note in QWidget::grabMouse().
|
||||||
|
|
||||||
\sa releaseMouse(), grabKeyboard(), releaseKeyboard(), setCursor()
|
\sa releaseMouse(), grabKeyboard(), releaseKeyboard(), setCursor()
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user