Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Show virtual keyboard
Forum Updated to NodeBB v4.3 + New Features

Show virtual keyboard

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 651 Views 4 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.
  • Q Offline
    Q Offline
    Qingshui Kong
    wrote on last edited by
    #1

    Hello everyone,
    Could somebody give me some advice?
    I want to create a new control inherits QWidget. I want to add a function to it. That's when it is clicked, the virtual keyboard will show.

    But I don't know how. Does someone know? Could somebody give some clues?

    Thanks in advance.

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

      Hi,

      Are you looking for the QtVirtualKeyboard module ?

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

      Q 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        Are you looking for the QtVirtualKeyboard module ?

        Q Offline
        Q Offline
        Qingshui Kong
        wrote on last edited by
        #3

        @SGaist
        Thank you. No. I just want to know how to show virtual keyboard when QPushButton or QWidget is clicked.

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

          Hi
          If you dont mean the Qt virtual keyboard, which one do you mean then ?
          The build in in windows ?
          https://www.youtube.com/watch?v=Yb0Z2BYveOM

          1 Reply Last reply
          2
          • Seb TurS Offline
            Seb TurS Offline
            Seb Tur
            wrote on last edited by
            #5

            let me refresh the topic instead of creating a new one as I have the same question.

            I deployed ubuntu 22.04 onto a RPI4.
            There is already a virtual keyboard in standard Gnome session and works with the Ubuntu stock apps (GTK I assume)

            When I load my project and click in my QLineEdit nothing happens.
            Of course I can load qvirtualkeyboard by adding

            #ifndef Q_OS_WIN
                qputenv("QT_QPA_PLATFORM", "xcb");
                qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
            #endif
            

            but then it is not consistent with the whole desktop.
            Is it possible to make Qt app to use standard gnome Virtual Keyboard?

            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