Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Applcation crashes: Qt 5.15.0 Version on using Virtual keyBoard [Debug mode]
QtWS25 Last Chance

Applcation crashes: Qt 5.15.0 Version on using Virtual keyBoard [Debug mode]

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 599 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Satyakaama
    wrote on last edited by Satyakaama
    #1

    Hi All

    Following assertion failure is seen

    ASSERT: "!this->inputPanel" in file qvirtualkeyboardinputcontext_p.cpp, line 22

    Scenario :
    Import Qt virtual keyboard

    And use across multiple QML.

    First page , no assertion failure is seen and if we navigate to next page
    in the same session, assertion failure is seen

    We are suspecting , multiple keyboard instance is not supported in Qt 5.15.0.

    Request some one to help in solving above issue

    Thanks and regards
    Satya

    raven-worxR 1 Reply Last reply
    0
    • S Satyakaama

      Hi All

      Following assertion failure is seen

      ASSERT: "!this->inputPanel" in file qvirtualkeyboardinputcontext_p.cpp, line 22

      Scenario :
      Import Qt virtual keyboard

      And use across multiple QML.

      First page , no assertion failure is seen and if we navigate to next page
      in the same session, assertion failure is seen

      We are suspecting , multiple keyboard instance is not supported in Qt 5.15.0.

      Request some one to help in solving above issue

      Thanks and regards
      Satya

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Satyakaama
      are you creating a InputPanel element?
      If yes, are you sure it is not destroyed while you switch to the next page?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Satyakaama
        wrote on last edited by
        #3

        Yes. We are creating InputPanel element.And is not destroyed while switch to next page.

        Regards
        Satya

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          You should provide a minimal compilable example that triggers this issue.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Satyakaama
            wrote on last edited by
            #5

            Main.qml

            import QtQuick 2.15
            import QtQuick.Window 2.15
            import QtQuick.VirtualKeyboard 2.2
            import QtQuick.Controls 1.4
            import QtQuick.VirtualKeyboard.Settings 2.2

            Window {
            id: window
            visible: true
            width: 640
            height: 480
            title: qsTr("Hello World")

            Loader{
                id: virtualkeyboardid
                anchors.centerIn: parent
                height:parent.height
                width:parent.width
                z:10
                source: ""     //"qrc:/KeyboardQML.qml"
                visible: true
            }
            
            TextField {
                anchors.centerIn: parent
                placeholderText: qsTr("Enter name")
            }
            
            Rectangle{
                id:rect
                height: 20
                width: 40
                border.width: 2
                border.color: "blue"
                color: "red"
                anchors.top: parent.top
            
                MouseArea{
                    anchors.fill: parent
                    onClicked: {
                        virtualkeyboardid.source = "qrc:/KeyboardQML.qml" // on click of next page
                    }
                }
            }
            
            InputPanel {
                id: inputPanel
                z: 99
                x: 0
                y: window.height
                anchors.bottom: parent.bottom
                anchors.right: parent.right
                width: window.width
            
                states: State {
                    name: "visible"
                    when: inputPanel.active
                    PropertyChanges {
                        target: inputPanel
                        y: window.height - inputPanel.height
                    }
                }
                transitions: Transition {
                    from: ""
                    to: "visible"
                    reversible: true
                    ParallelAnimation {
                        NumberAnimation {
                            properties: "y"
                            duration: 250
                            easing.type: Easing.InOutQuad
                        }
                    }
                }
            
                Component.onCompleted: {
                    console.log("Component.onCompleted")
                }
            
                Component.onDestruction: {
                    console.log("Component.onDestruction:Before")
                    inputPanel.
                    console.log("Component.onDestruction")
                }
            }
            

            }

            KeyBoard.qml

            import QtQuick 2.0
            import QtQuick.Window 2.15
            import QtQuick.VirtualKeyboard 2.2
            import QtQuick.Controls 1.4

            Item {
            InputPanel {
            id: inputPanel1
            z: 99
            x: 0
            }
            }

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Can you test with 5.15.2 ?
              It did not crash for me with that version on macOS.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved