diff options
author | axis <qt-info@nokia.com> | 2009-12-01 14:15:41 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-12-01 14:17:46 (GMT) |
commit | d3d44583fc354773f8260c3b6afa02340c51f450 (patch) | |
tree | 33e61191dc14c0a8653ab334451b9a677dd82f04 /src/gui/kernel | |
parent | 8d83cad5d67408576c8e4e86e48aa6f952165ac3 (diff) | |
download | Qt-d3d44583fc354773f8260c3b6afa02340c51f450.zip Qt-d3d44583fc354773f8260c3b6afa02340c51f450.tar.gz Qt-d3d44583fc354773f8260c3b6afa02340c51f450.tar.bz2 |
Clarify the docs a bit when setting focus.
RevBy: Trust me
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index b389054..d19c574 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -366,7 +366,8 @@ bool QWidget::hasEditFocus() const normally; otherwise, Qt::Key_Up and Qt::Key_Down are used to change focus. - This feature is only available in Qt for Embedded Linux. + This feature is only available in Qt for Embedded Linux and Qt + for Symbian. \sa hasEditFocus(), QApplication::keypadNavigationEnabled() */ @@ -6045,6 +6046,11 @@ bool QWidget::hasFocus() const (Nothing happens if the focus in and focus out widgets are the same.) + \note On embedded platforms, setFocus() will not cause an input panel + to be opened by the input method. If you want this to happen, you + have to send a QEvent::RequestSoftwareInputPanel event to the + widget yourself. + setFocus() gives focus to a widget regardless of its focus policy, but does not clear any keyboard grab (see grabKeyboard()). @@ -6057,7 +6063,7 @@ bool QWidget::hasFocus() const \sa hasFocus(), clearFocus(), focusInEvent(), focusOutEvent(), setFocusPolicy(), focusWidget(), QApplication::focusWidget(), grabKeyboard(), - grabMouse(), {Keyboard Focus} + grabMouse(), {Keyboard Focus}, QEvent::RequestSoftwareInputPanel */ void QWidget::setFocus(Qt::FocusReason reason) |