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

iOS: Focussing on a read-only TextEdit can prevent Button from receiving further clicks

XMLWordPrintable

    • iOS/tvOS/watchOS
    • 46d69b6ca (dev), ffe74b562 (6.5), ec3929789 (6.6)

      Code

      import QtQuick
      import QtQuick.Controls
      
      Window {
          visible: true
      
          Column {
              spacing: 10
      
              Button {
                  text: "Click Me"
                  onClicked: console.log("clicked")
              }
      
              TextEdit {
                  readOnly: true
                  text: "Stealer"
              }
          }
      }
      

       

      Steps to reproduce

      1. Build and run the code above for the iOS Simulator
      2. Click the button 3 times
      3. Click on the TextEdit
      4. Click the button 3 times
      5. Repeat Steps #3 and #4 a few times

       

      Outcomes

      • After Step #2, we see "clicked" printed 3 times in the debug output (Expected)
      • After Step #4, we see "clicked" printed only 1 time in the debug output (Not expected)

       

      After the TextEdit receives focus, the Button responds to 1 more click and then goes silent. Clicking on the TextEdit again brings the Button back to life for 1 more click.

        For Gerrit Dashboard: QTBUG-114416
        # Subject Branch Project Status CR V

            vestbo Tor Arne Vestbø
            skoh-qt Sze Howe Koh
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes