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

TextArea/TextField selection not properly working on iOS

    XMLWordPrintable

    Details

    • Platform/s:
      iOS/tvOS/watchOS

      Description

      After selection of text the copy/cut/past popup is not shown on iOS.

      Scenario 1:

      1. Select part of the text using press and hold.
      2. Press and hold on the selected text.
      3. The "Copy/Paste" system popup sometimes shortly pops up but immediately vanishes.

      Expected behavior: The popup should stay visible.

      Scenario 2:

      1. Press and hold without text selection.
      2. A popup will show. Select the "Select all" option.
      3. Press and hold on the selected text.
      4. The "Copy/Paste" system popup properly shows up.
      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
          title: qsTr("Test")
      
          TextArea {
              id: textField
              selectByMouse: true
              persistentSelection: true
      
              wrapMode: Text.WrapAtWordBoundaryOrAnywhere
      
              layer.enabled: true // Qt 5.15.7 bug
      
              text: "Test 1\nTest2"
          }
      }
      
      

      The problem does not occur in Qt 6.2.2.

        Attachments

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

          Activity

            People

            Assignee:
            richard Richard Moe Gustavsen
            Reporter:
            Harald Meyer Harald Meyer
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes