Using the QML Popup control, the modal: true virtual keyboard cannot be used
-
wrote on 3 Jun 2024, 14:28 last edited by
Using the QML Popup control, modal: true placed a TextField control inside the Popup. Clicking the TextField could pop up a virtual keyboard, but the virtual keyboard could not be clicked. How to solve this problem. I am a beginner to ask you if there is any good way to solve this problem
-
wrote on 13 Jun 2024, 15:50 last edited by
This older thread might be relevant: https://forum.qt.io/topic/123986/modal-dialogs-break-virtual-keyboard
-
wrote on 13 Jun 2024, 15:50 last edited by
(sidenote: I have not used the Qt Virtual Keyboard myself, so I have no direct experience or tips to share.)
-
wrote on 14 Jun 2024, 02:10 last edited by
at least this works fine with QtVKB on Windows + Qt 6.7
import QtQuick import QtQuick.Controls Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Popup { id: popup y: 100 modal: true focus: true TextField { } } Button { text: "open" onClicked: popup.open() } }