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

QFileSystemModel blocks directory deletion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.5.1, 5.6.0
    • Widgets: Itemviews
    • None
    • Windows 7

    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
              dmitryrx Dmitry
              Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes