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. Presence of a hardware keyboard

Presence of a hardware keyboard

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.0k 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.
  • Z Offline
    Z Offline
    zeecrowddev
    wrote on last edited by
    #1

    Hi

    I would like to now the way to detect the presence or not of a physical keyboard on the device.

    Regards

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

      Hi,

      What device/OS are you targeting ?

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

      Z 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What device/OS are you targeting ?

        Z Offline
        Z Offline
        zeecrowddev
        wrote on last edited by
        #3

        @SGaist Hi

        All the device / OS :-)

        Our application (zeecrowd) run on desktop : PC and Mac

        Now we targeting tablet. It runs on Samsung Galaxy Tab4 but i need to now if a physical keyboard is connecting.

        Because i set the focus on a TextInput only if a physical keyboard is connected

        Thanks

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

          Why only if there's a hardware keyboard ?

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

          Z 1 Reply Last reply
          0
          • SGaistS SGaist

            Why only if there's a hardware keyboard ?

            Z Offline
            Z Offline
            zeecrowddev
            wrote on last edited by
            #5

            @SGaist

            When there isn't physical keyboard when i set the focus a virtual keyboard is showed automatically.

            Thus i want to set the focus only there is a physical keyboard. Otherwise the user click on the InputText and then there is a virtual keyboard

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

              On android you might be able to achieve that using this

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

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                zeecrowddev
                wrote on last edited by zeecrowddev
                #7

                Thanks

                But a stupid question (and i hope the last :-) ) : how can i call this java function from Qt ?

                .....

                Sorry i found the answer in Qt Android Extras

                Thx

                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