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

Scrolling a TextArea in a Flickable results in Menus stop working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0
    • None
    • iOS/tvOS/watchOS

    Description

      I have an app that has a page with a simple TextArea inside a Flickable:

      Flickable
      {
          id: list    Layout.fillWidth: true
          Layout.fillHeight: true
          Layout.leftMargin: 5
          Layout.rightMargin: 5
          flickableDirection: Flickable.VerticalFlick
          TextArea.flickable: TextArea {
              id: field
              //height: 300
              text: root.getText()
              wrapMode: Label.Wrap
              readOnly: true
          }    ScrollBar.vertical: ScrollBar {
              policy: ScrollBar.AlwaysOn
          }
      }
      

      If I scroll the text (when the page is not large enough to display all the text) all the MenuItem-s stop working in my app. They opens but their onTriggered handlers are not called in QML.

      I was able to reproduce this behaviour with texteditor example fromĀ ./qtdeclarative/examples/quickcontrols2 folder. When I run the example on iPod Simulator and press "About" button from upper-right corner some About Dialog successfully appears, but if I scroll the editor content with the mouse "About" button stops working and my breakpoint at onTriggered handler is not triggered anymore.

      I modified the example a little bit to make it work on iOS, see attachments.

      This application-wide collapse happens only on iOS simulator and does not happen on Windows, MacOS and Android.

      My simulator: iPod touch-7th generation iOS 15.2

      XCode: 13.2.1

      Attachments

        1. Screenshot 2022-11-01 at 04.39.26.png
          400 kB
          Dmitry Efimov
        2. Screenshot 2022-11-01 at 04.39.50.png
          154 kB
          Dmitry Efimov
        3. Screenshot 2022-11-01 at 04.40.13.png
          165 kB
          Dmitry Efimov
        4. texteditor.zip
          227 kB
          Dmitry Efimov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            dmitriano Dmitry Efimov
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes