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

Windows: QFileSystemModel blocks application

XMLWordPrintable

      Set-up:
      -QListWidget manually populated with all volumes present on the system and some user favourite folder.
      -When that one is clicked, it will set the "setRootIndex" with the file model (QFileSystemModel) to "setRootPath(path)"
      -The QFileSystemModel is initialize with those filters:
      QFileSystemModel::setFilter(QDir::Files | QDir::AllDirs | QDir::NoDotAndDotDot | QDir::NoSymLinks);

      What is happening:
      Randomly, my application will block until I press pause and then continue within Visual Studio. When Pause is pressed, it's look like the app is waiting for that function to finish: "SHGetFileInfo(reinterpret_cast<const wchar_t *>(filePath.utf16()), 0,&info, sizeof(SHFILEINFO), flags);" (from QWindowsTheme.cpp) with filePath, in my case, equal to "C:\work\Test Footage\."

        1. Qt_BugReport.jpg
          28 kB
          Nicolas Aubry
        2. QFileSystemTest.zip
          6 kB
          Nicolas Aubry
        3. qtbug45298.zip
          5 kB
          Friedemann Kleint
        4. qtbug45298_diag.diff
          1 kB
          Friedemann Kleint
        For Gerrit Dashboard: QTBUG-45298
        # Subject Branch Project Status CR V

            macadder Jason McDonald
            TheRealNox Nicolas Aubry
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes