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. No submit button on Android virtual keyboard when using TextArea
Forum Updated to NodeBB v4.3 + New Features

No submit button on Android virtual keyboard when using TextArea

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 3 Posters 2.2k 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.
  • M Offline
    M Offline
    m.kuncevicius
    wrote on last edited by
    #1

    Hello, where is no submit button on Android virtual keyboard when using TextArea. It is possible to show submit button on the Android virtual keyboard some how? I tried to use inputMethodHints, but unsuccessfully.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Are you using QtQuick.Controls 1 or 2?

      I think (haven't tested) that by default you will get submit button for TextField, but for TextArea you will get the return button instead (because TextArea is multi-line).

      (Z(:^

      M 1 Reply Last reply
      0
      • sierdzioS sierdzio

        Are you using QtQuick.Controls 1 or 2?

        I think (haven't tested) that by default you will get submit button for TextField, but for TextArea you will get the return button instead (because TextArea is multi-line).

        M Offline
        M Offline
        m.kuncevicius
        wrote on last edited by
        #3

        @sierdzio I am using QtQuick.Controls 2. Yes there is exactly as you say about the TextField. Using TextArea where is enter button instead of submit. I need a submit button for the TextArea to submit the multi-line text and close the virtual keyboard.

        ekkescornerE 1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          It may be necessary to go use the JNI in this case, not sure, sorry :(

          (Z(:^

          1 Reply Last reply
          0
          • M m.kuncevicius

            @sierdzio I am using QtQuick.Controls 2. Yes there is exactly as you say about the TextField. Using TextArea where is enter button instead of submit. I need a submit button for the TextArea to submit the multi-line text and close the virtual keyboard.

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            @m.kuncevicius I'm placing a button besides the textarea
            https://appbus.wordpress.com/2017/03/25/text-selection-handles-qt-5-8/
            in the meantime have changed the order of the buttons: placed done on top to make it easier to reach under some situations with small screens and large virtual keyboards hiding much space

            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
              m.kuncevicius
              wrote on last edited by m.kuncevicius
              #6

              @ekkescorner thank you for the idea how to walk around the problem. In my case I just replaced TextArea with the TextField. However your solution is better.

              ekkescornerE 1 Reply Last reply
              0
              • M m.kuncevicius

                @ekkescorner thank you for the idea how to walk around the problem. In my case I just replaced TextArea with the TextField. However your solution is better.

                ekkescornerE Offline
                ekkescornerE Offline
                ekkescorner
                Qt Champions 2016
                wrote on last edited by
                #7

                @m.kuncevicius I also have a special textfield if only numeric digits allowed where on iOS no Button is available. In this case I add a small 'OK' Button besides the TextField.
                and just working on a special Password Field with an eye to switch visibility on / off
                will blog about

                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
                1

                • Login

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