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

QSortFilterProxyModel call to mapToSource random crash

    XMLWordPrintable

Details

    • 5a20af684cf61192d4823869c3a55af7b3c0141e (qt/qtquickcontrols/5.15)

    Description

      Please refer to the attached sample, there is a random crash when QFileSystemModel is used with QSortFilterProxyModel. When user selects the folder by clicking on a folder from folder list, and then presses "select" button, maptoSource() is crashing even the index is valid.

      Observation: If folder structure is say, C:\Folder\test. click on folder once, don't click on test folder. Just launch the app, click on C:\ and then click folder (try by clicking on empty space on left), and then press "select"

      Attaching the stack trace also.

      Attachments

        1. qtbug84853.zip
          4 kB
        2. stack_trace.txt
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            andysh Andy Shaw
            shmittal Shveta Mittal (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change