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. QVirtualKeyBoard problem: inputmethod is not set
Forum Updated to NodeBB v4.3 + New Features

QVirtualKeyBoard problem: inputmethod is not set

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 690 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.
  • A Offline
    A Offline
    Alex_k
    wrote on last edited by
    #1

    The keyboard is shown, but when you click on TextInput i get message "input method is not set. Maybe someone know this.

    Window {
        id: window
        visible: true
        width: 1024
        height: 768
     color: "lightgreen"
    
    
    
        TextInput
        {
            id: textInput
            text: qsTr("Enter some text...")
            height: parent.height
            width: parent.width
            color: focus ? "red" : "black"
            font.pixelSize: 32
            function setFontSize(newSize)
            {
                font.pixelSize = newSize
                return font.family + " Size=" + newSize
            }
    
        }
    
        InputPanel {
            id: inputPanel
            z: 99
            x: 0
            y: window.height
            //        y: Qt.inputMethod.visible ? parent.height - inputPanel.height : parent.height
            //                anchors.left: parent.left
            //                anchors.right: parent.right
            width: window.width
            focus: true
            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
                    }
                }
            }
        }
    }
    
    1 Reply Last reply
    0
    • J Offline
      J Offline
      jeremy.li
      wrote on last edited by
      #2

      You can try to set:

      modality: Qt.WindowModal
      

      to Window. It works for me.

      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