Application Window and Dialog Issue.



  • Hello, I am not able to click on the virtual keyboard if the TextField is in the dialog and **Application Window ** is the base class, Following is the code :

    import QtQuick 2.6
    import QtQuick.Window 2.2
    import QtQuick.Controls 2.2
    import QtQuick.VirtualKeyboard 2.2
    
    ApplicationWindow {
        id:appwindow
        visible: true
        width: 600
        height: 500
        title: qsTr("Test")
        
        Button{
            id:button
            text:qsTr("Open")
            onClicked:{
                dialog.visible=true
                dialog.open()
            }
        }
        
        Dialog{
            id:dialog
            width:200
            height:300
            visible:false
            TextField {
                id: textfield
                color: "#2B2C2E"
            }
        }
        
        InputPanel {
            id: inputPanel
            z: 89
            anchors.bottom:parent.bottom
            anchors.left: parent.left
            anchors.right: parent.right
            visible: Qt.inputMethod.visible 
        }
    }
    

    There will be no issues if i change ApplicationWindow to Window, Is that a QT Bug ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.