Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Showing the software keyboard
Forum Updated to NodeBB v4.3 + New Features

Showing the software keyboard

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 844 Views 1 Watching
  • 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.
  • T Offline
    T Offline
    thready
    wrote on last edited by
    #1

    Hi,

    I have the following code inside a rectangle... everything is drawn correctly, but the software keyboard doesn't come out after the text is cleared in onClicked.

    I get the following error from the application output:
    W/Qt (10113): qrc:/recordingView.qml:34 ((null)): qrc:/recordingView.qml:34: TypeError: Property 'openSoftwareInputPanel' of object QQuickTextInput(0x766539a0) is not a function

    @ TextInput {
    id: textInput
    text: "Type word here"
    activeFocusOnPress: false
    font.pointSize: 20
    anchors.centerIn: parent

            MouseArea {
                anchors.fill: parent
                onClicked: {
                    textInput.text = ""
                    if (!textInput.activeFocus) {
                        textInput.forceActiveFocus();
    
                        textInput.openSoftwareInputPanel();
                    } else {
                        textInput.focus = false;
                    }
                }
                onPressAndHold: textInput.closeSoftwareInputPanel();
            }
        }@
    

    How can I get the keyboard to come out and play?

    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