aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/content/InputPanel.qml
diff options
context:
space:
mode:
authorTarja Sundqvist <tarja.sundqvist@qt.io>2022-11-10 22:42:52 +0200
committerTarja Sundqvist <tarja.sundqvist@qt.io>2022-11-10 22:42:52 +0200
commit5f66c9571303170f07954f73b09cad4cee1ce5d0 (patch)
tree4db1bfeffd318749c777ca1dafe230026b3e15d0 /src/virtualkeyboard/content/InputPanel.qml
parent8aebadb96c1e57ba89bba2e5962399f676207a32 (diff)
parent7eaab2d3cbcd557385e7656fae287328d6242b37 (diff)
Merge remote-tracking branch 'origin/tqtc/lts-5.15.8' into tqtc/lts-5.15-opensourcev5.15.8-lts-lgpl
Diffstat (limited to 'src/virtualkeyboard/content/InputPanel.qml')
-rw-r--r--src/virtualkeyboard/content/InputPanel.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/virtualkeyboard/content/InputPanel.qml b/src/virtualkeyboard/content/InputPanel.qml
index 490811bf..dd14fca6 100644
--- a/src/virtualkeyboard/content/InputPanel.qml
+++ b/src/virtualkeyboard/content/InputPanel.qml
@@ -48,6 +48,17 @@ import QtQuick.VirtualKeyboard 2.1
the module, the \c QT_IM_MODULE environment variable must be set to
\c qtvirtualkeyboard before using InputPanel. For more information, see
\l {Loading the Plugin}.
+
+ \note You can have only one InputPanel instance in your application.
+
+ \section2 InputPanel and modal dialogs
+
+ Qt prevents modal popups from blocking the keyboard UI, as this would make it
+ impossible to use the keyboard to write into a text field within a modal popup.
+ When an input field receives focus during a modal session, the InputPanel item is
+ made a sibling of the Overlay, and given a z-value one above the Overlay's so that
+ it stays on top of the user interface. When the modal session ends, the item is
+ reparented back to the original parent, and the z-value is restored.
*/
Item {