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

iOS: TextFields "context menu" stops TapHandler from working properly

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 843ce2759 (dev), 2805472e0 (6.5), 33402cdf6 (6.6), 46d69b6ca (dev), ffe74b562 (6.5), ec3929789 (6.6)

    Description

      With the following example you can create some TapHandler deadlock within a minute:

      Run the example and open/close the iOS copy/paste/lookup context menu of the "Test" TextField several times. After some point, you'll be unable to check or uncheck the CheckBox anymore. Flicking the content still works.

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls
      
      Window {
          id: win
          width: 800
          height: 600
          visible: true
          title: 'sandbox'
      
          Flickable {
              anchors.fill: parent
              contentHeight: col.height
              Column {
                  id: col
                  anchors.fill: parent
                  anchors.leftMargin: 50
                  anchors.topMargin: 50
                  spacing: 100
                  TextField {
                      anchors {
                          left: parent.left
                          right: parent.right
                      }
      
                      text: 'Test'
                      readOnly: true
                  }
      
                  CheckBox {
                      text: 'Check me'
                  }
              }
          }
      }
      

      At the point where it stops working, iOS shows

      The edit menu (configuration: <UIEditMenuConfiguration: 0x283da4c40: identifier=820219C8-17C9-407C-B0B9-FD871EBE9FFF, sourcePoint={0, 0}, arrowDirection=.automatic>) did not have performable commands and/or actions; ignoring present.
      

      in the console.

      Attachments

        Issue Links

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

          Activity

            People

              dorisverria Doris Verria
              cajus Cajus Pollmeier
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes