diff options
authorPaul Olav Tvete <>2014-10-20 13:41:21 +0200
committerPaul Olav Tvete <>2014-10-24 07:54:12 +0200
commit77339e6bbf8baec5c15b604adbc03ab41cb37595 (patch)
parent575008ec81d7bffc8b7ce631fa8f21377aada7cf (diff)
Doc: warn about preserving input method hints
Task-number: QTBUG-41252 Change-Id: I8ea2094c440b3c78b4bc78a69a5f6b18533e4927 Reviewed-by: Venugopal Shivashankar <>
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index b421d5debc..7533cacbdc 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -9663,6 +9663,10 @@ QVariant QWidget::inputMethodQuery(Qt::InputMethodQuery query) const
is set, the input method may change its visual components to reflect
that only numbers can be entered.
+ \warning Some widgets require certain flags in order to work as
+ intended. To set a flag, do \c{w->setInputMethodHints(w->inputMethodHints()|f)}
+ instead of \c{w->setInputMethodHints(f)}.
\note The flags are only hints, so the particular input method
implementation is free to ignore them. If you want to be
sure that a certain type of characters are entered,