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

Android copy/paste menu and selection anchors misplaced

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.8.2
    • None
    • Android
    • 2025wk10s1QtforAndroid

    Description

      I have a QML TextEdit field. When I press and hold, the Android copy/past menu pops up in a weird position (often hiding the text) and the selection anchors are positioned outside the text.

      The image below has the text Hello\nWorld. I have selected all text. You can see the selection anchors way down.

      Here is another example where the selection anchors are placed to the right of the text.

      It seems that the anchors are displaced by the offset from the upper left corner to the screen to the position of the TextEdit.

      Page {
          TextEdit {
              x: 20
              y: 30
          }
      }

      With this code the anchors are place 20 pixels below and 30 pixels to the right.

      This seems to be a bug in Qt6.8.2

      When I build my code with Qt6.7.3 the anchors are placed in the correct position.

      Attachments

        1. copy.jpg
          copy.jpg
          54 kB
        2. copypaste.jpg
          copypaste.jpg
          66 kB

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              michel_de_boer Michel de Boer
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes