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

QAccessibleTree can use invalid indices

    XMLWordPrintable

Details

    • Windows

    Description

      QAccessibleTree::indexFromLogical, QAccessibleTree::childCount() and QAccessibleTree::rowCount() use "treeView->d_func()->viewItems" to get index of element. But when tree widget isn't visible, these indices doesn't update. If that index contains internal pointer, as QSortFilterProxyModel indices, it can leads to use dangling pointer. With QPersistentIndex, which save this corrupted index into model, things getting worse.

      I can suggest to call treeView->d_func()->executePostedLayout(), before use viewItems.

      Attachments

        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
            roman.yushkov Roman Yushkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes