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

StackView a11y double replace crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • 6.3.2
    • Quick: Controls 2
    • None
    • Android, iOS/tvOS/watchOS

    Description

      With active a11y screenreader on different plattforms the StackView can crash the application. This can occur when replace is called two times in a row from the same object.

      This can be demonstrated by having a button call replace in its onClicked method. During the transition to the new page the a11y focus remains on the button on the old page. If the button is then activated again the app crashes, as the old page gets destroyed at the end of the transition. See the attached example.

      This problem can be mitigated by checking the StackView.status and only calling replace when the status of the current page is StackView.Active. But there should be either an internal Qt check here or the a11y focus has to be moved to the new page as soon as it is created.

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            jtrillma Jens Trillmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes