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. Using the QML Popup control, the modal: true virtual keyboard cannot be used
Forum Updated to NodeBB v4.3 + New Features

Using the QML Popup control, the modal: true virtual keyboard cannot be used

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 395 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.
  • F Offline
    F Offline
    fanchcn
    wrote on 3 Jun 2024, 14:28 last edited by
    #1

    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

    1 Reply Last reply
    1
    • K Offline
      K Offline
      KH-219Design
      wrote on 13 Jun 2024, 15:50 last edited by
      #2

      This older thread might be relevant: https://forum.qt.io/topic/123986/modal-dialogs-break-virtual-keyboard

      www.219design.com
      Software | Electrical | Mechanical | Product Design

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KH-219Design
        wrote on 13 Jun 2024, 15:50 last edited by
        #3

        (sidenote: I have not used the Qt Virtual Keyboard myself, so I have no direct experience or tips to share.)

        www.219design.com
        Software | Electrical | Mechanical | Product Design

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arceajin
          wrote on 14 Jun 2024, 02:10 last edited by
          #4

          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()
              }
          }
          
          
          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