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. keyboard does not show up

keyboard does not show up

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 795 Views 3 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.
  • L Offline
    L Offline
    LeoProXXX
    wrote on last edited by LeoProXXX
    #1

    Hi
    I have a TextField in my android app and when I click on it keyboard does not show up.
    I'm using Qt 5.11.3 and Qt Creator 4.8.1 (Community)

    Could you help me?
    Thanks a lot

    1 Reply Last reply
    0
    • Aleksey_KA Offline
      Aleksey_KA Offline
      Aleksey_K
      wrote on last edited by
      #2

      Have same issue with Qt 5.15: https://stackoverflow.com/q/64629611/630169 Any solution?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PawlosCK
        wrote on last edited by
        #3

        Did you tried other keyboard? Maybe your keyboard is broken, or using specific settings.
        Try AnySoftKeyboard or search for other keyboard.

        Aleksey_KA 1 Reply Last reply
        0
        • P PawlosCK

          Did you tried other keyboard? Maybe your keyboard is broken, or using specific settings.
          Try AnySoftKeyboard or search for other keyboard.

          Aleksey_KA Offline
          Aleksey_KA Offline
          Aleksey_K
          wrote on last edited by
          #4

          @PawlosCK said in keyboard does not show up:

          Did you tried other keyboard? Maybe your keyboard is broken, or using specific settings.
          Try AnySoftKeyboard or search for other keyboard.

          Problem reproducible on 2 devices and different keyboards:

          • Samsung and its keyboard
          • Huawei and Microsoft Swift Keyboard

          https://forum.qt.io/topic/120462/soft-keyboard-is-not-visible-on-android-with-qt-5-15-on-any-input

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PawlosCK
            wrote on last edited by
            #5

            So I have no idea how to fix it

            1 Reply Last reply
            0
            • Aleksey_KA Offline
              Aleksey_KA Offline
              Aleksey_K
              wrote on last edited by Aleksey_K
              #6

              So the problem was obvious because of following lines:

              #ifdef Q_OS_LINUX
                  qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
              #endif
              

              Changed to

              #if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
                  qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
              #endif
              

              And voila: Android keyboard works! :)

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved