Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105530

Can't paste into empty text field on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.2.7, 6.3.0
    • 6.2.5
    • Quick: Controls 2
    • None
    • Android
    • 2022wk38FOQtforAndroid, 2022wk40FOQtforAndroid, 2022wk42FOQtforAndroid, 2022wk44FOQtforAndroid

    Description

      If a text field has some text in it, you can tap-and-hold to show the standard Android context menu to Cut/Copy/Paste the selected text.

      However, if the text field is empty, tap-and-hold does not show the context menu.

      The attached qml example has two text field, one with some initial text, one empty with just place-holder text. To demonstrate the problem, tap-and-hold in the top control to select some of the text, then tap-and-hold in the empty control. No menu is shown in the empty control. If you type a few characters in the empty control, then tap-and-hold, the menu is shown.

      Attachments

        1. main.qml
          0.6 kB
        2. QTBUG-105530-Qt630-2nd.mp4
          560 kB
        3. QTBUG-105530-Qt625.mp4
          635 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rampe Rami Potinkara
              rss Richard Stephens
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes