Work around QtVirtualKeyboard layering issues

https://bugreports.qt.io/browse/QTBUG-56918
This commit is contained in:
Michael Zanetti 2019-12-01 11:58:10 +01:00
parent 1147dc5135
commit a1e550a260
3 changed files with 12 additions and 0 deletions

View File

@ -415,8 +415,14 @@ ApplicationWindow {
}
// NOTE: If using a Dialog, make sure closePolicy does not contain Dialo.CloseOnPressOutside
// or the virtual keyboard will close when pressing it...
// https://bugreports.qt.io/browse/QTBUG-56918
KeyboardLoader {
id: keyboardRect
parent: app.overlay
z: 1
anchors { left: parent.left; bottom: parent.bottom; right: parent.right }
}
}

View File

@ -119,6 +119,9 @@ Page {
MeaDialog {
title: qsTr("Groups for %1").arg(root.device.name)
headerIcon: "../images/view-grid-symbolic.svg"
// NOTE: If CloseOnPressOutside is active (default) it will break the QtVirtualKeyboard
// https://bugreports.qt.io/browse/QTBUG-56918
closePolicy: Popup.CloseOnEscape
RowLayout {
Layout.leftMargin: app.margins

View File

@ -206,6 +206,9 @@ Page {
y: app.margins
standardButtons: Dialog.Ok | Dialog.Cancel
// NOTE: If CloseOnPressOutside is active (default) it will break the QtVirtualKeyboard
// https://bugreports.qt.io/browse/QTBUG-56918
closePolicy: Popup.CloseOnEscape
TextField {
id: textField