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. QT Virtual Keyboard (InputPanel QML Type) Activation from Just One Qt Quick Text Component

QT Virtual Keyboard (InputPanel QML Type) Activation from Just One Qt Quick Text Component

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 1 Posters 1.7k 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.
  • B Offline
    B Offline
    Brian Gyetko
    wrote on last edited by
    #1

    The QT Virtual Keyboard or (InputPanel QML Type) is very powerful.

    I have managed to get this InputPanel to pop up all the time, that is, when ANY Text Qt Quick component gains focus and hides when lost focus. That works well.

    What I need is to only pop this InputPanel up when the user sets focus to one or two specific Text components, and not globally throughout the application.

    1. First, is this possible?
    2. And if so, is there an example that shows how to do this, or some simple instructions on how to do it?

    Thank you
    Brian

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Brian Gyetko
      wrote on last edited by
      #2

      Any guidance would be appreciated here.

      Is it possible? Any examples out there to help binding the InputPanel to only one or 2 QtQuick Text components all defined in QML?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Brian Gyetko
        wrote on last edited by
        #3

        I worked around this issue by doing the following:

        1. Added the InputPanel to my own custom dialog (File Save) to the bottom of it.
        2. When showing the dialog, I center the dialog on screen, making the InputPanel visible at the bottom of the dialog.
        3. After the user inputs the file name to save to and clicks "Save", the dialog is made invisible.
        4. In the dialog's "onVisibleChanged" signal handler, I set dialog.y = 5000, making the dialog move way offscreen even though it is invisible. Now any other component click events are not interfered with.

        Works pretty well.

        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