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. Android Return key hides keyboard bug
QtWS25 Last Chance

Android Return key hides keyboard bug

Scheduled Pinned Locked Moved Solved Mobile and Embedded
9 Posts 2 Posters 565 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.
  • M Offline
    M Offline
    Michel de Boer
    wrote on 27 Jun 2024, 11:23 last edited by
    #1

    After migrating from Qt6.6.2 to Qt6.7.2 I have this bug:

    I have a QML TextEdit for editing multi line text. When I press the Return key on the virtual keyboard, then a new line gets added to the input (good), but the keyboard hides (bad). The focus stays on the TextEdit field though!

    In Qt6.6.2 this works fine. The keyboard stays visible when pressing Return.

    1 Reply Last reply
    1
    • E Offline
      E Offline
      ekkescorner
      Qt Champions 2016
      wrote on 28 Jun 2024, 17:34 last edited by
      #2

      which keyboard are you using ? Have you tried Google gboard ?

      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
      5.15 --> 6.8 https://t1p.de/ekkeChecklist
      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Michel de Boer
        wrote on 29 Jun 2024, 07:10 last edited by
        #3

        I am using the default Samsung keyboard on my Galaxy S22.
        It has been working always fine with previous Qt versions. Only with Qt6.7.* I get this behavior. Qt.6.7.2 is much better already than Qt6.7.0 as that one completely broke my app.
        For now I have gone back to Qt6.6.3. Qt6.7.2 has still too many issues on Android.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          ekkescorner
          Qt Champions 2016
          wrote on 29 Jun 2024, 09:00 last edited by ekkescorner
          #4

          just tested. it's the same with gboard:
          Press return: new line added and keyboard hides.
          tapping again into the field, keyboard comes back and you can go on and enter text.

          or use this as workaround:

          Keys.onReturnPressed:  {
                  nextTextField.forceActiveFocus()
                  thisTextField.forceActiveFocus()
           }
          

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.8 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          M 1 Reply Last reply 30 Jun 2024, 09:02
          0
          • E Offline
            E Offline
            ekkescorner
            Qt Champions 2016
            wrote on 29 Jun 2024, 11:52 last edited by
            #5

            please open bugreport for your TextField problems on Android with 6.7.x

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.8 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            M 1 Reply Last reply 30 Jun 2024, 09:02
            0
            • E ekkescorner
              29 Jun 2024, 09:00

              just tested. it's the same with gboard:
              Press return: new line added and keyboard hides.
              tapping again into the field, keyboard comes back and you can go on and enter text.

              or use this as workaround:

              Keys.onReturnPressed:  {
                      nextTextField.forceActiveFocus()
                      thisTextField.forceActiveFocus()
               }
              
              M Offline
              M Offline
              Michel de Boer
              wrote on 30 Jun 2024, 09:02 last edited by
              #6

              @ekkescorner yes, i see same behavior. I have this workaround:

              Keys.onReleased: (event) => {
                  if (event.key === Qt.Key_Return)
                      Qt.inputMethod.show()
              }
              

              It works but it is not great, as the keyboard hides and the pops up again.

              My biggest issue with Qt6.7.2 is that all movements, e.g. scrolling and drawers popping up, are very jittery. It's like there is a vibration in the movement. Do you see that too?

              E 1 Reply Last reply 30 Jun 2024, 09:31
              0
              • E ekkescorner
                29 Jun 2024, 11:52

                please open bugreport for your TextField problems on Android with 6.7.x

                M Offline
                M Offline
                Michel de Boer
                wrote on 30 Jun 2024, 09:02 last edited by Michel de Boer
                #7

                @ekkescorner I created https://bugreports.qt.io/browse/QTBUG-126785

                1 Reply Last reply
                0
                • M Michel de Boer
                  30 Jun 2024, 09:02

                  @ekkescorner yes, i see same behavior. I have this workaround:

                  Keys.onReleased: (event) => {
                      if (event.key === Qt.Key_Return)
                          Qt.inputMethod.show()
                  }
                  

                  It works but it is not great, as the keyboard hides and the pops up again.

                  My biggest issue with Qt6.7.2 is that all movements, e.g. scrolling and drawers popping up, are very jittery. It's like there is a vibration in the movement. Do you see that too?

                  E Offline
                  E Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on 30 Jun 2024, 09:31 last edited by ekkescorner
                  #8

                  @Michel-de-Boer said in Android Return key hides keyboard bug:

                  My biggest issue with Qt6.7.2 is that all movements, e.g. scrolling and drawers popping up, are very jittery. It's like there is a vibration in the movement. Do you see that too?

                  have no problems yet, but I'm on 6.7.1

                  thx creating the issue. voted...

                  ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                  5.15 --> 6.8 https://t1p.de/ekkeChecklist
                  QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Michel de Boer
                    wrote on 19 Dec 2024, 12:01 last edited by
                    #9

                    Keyboard hide on RETURN seems to be solved in Qt6.7.3

                    1 Reply Last reply
                    0
                    • M Michel de Boer has marked this topic as solved on 19 Dec 2024, 12:01

                    • Login

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