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

CLONE - QFileSystemModel blocks directory deletion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.2
    • Widgets: Itemviews
    • None
    • Windows 10

    Description

      Consider the following example:

      1) Create QFileSystemModel and attach it to a QTreeView
      2) Create a subdirectory x1/x2/x3/x4
      3) Expand the entire hierarchy x1->x2->x3->x4 in the QTreeView
      4) Call QDir("x1").removeRecursively()

      Result: removeRecursively() fails. In console I see

      QFileSystemWatcher: FindNextChangeNotification failed for "C:\Users\krasu\AppData\Local\Temp\watcher-text\x1\x2\x3\x4" (Access denied.)

      Using the attached sample project:

      1) Compile and run
      2) Click "Expand" multiple times
      3) Click "Delete"

      Result: You'll see an error message.

      Attachments

        Issue Links

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

          Activity

            People

              peppe Giuseppe D'Angelo
              moffa13 Jérémy Moffa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes