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

QFileSystemModel doesn't refresh after a file is set to be hidden in Explorer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: Core: Item Models
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      QFileSystemModel model;
      const auto filters = (QDir::AllEntries | QDir::NoDotAndDotDot) & ~QDir::Hidden;
      model.setFilter(static_cast<QDir::Filters>(filters));

      QTreeView tree;

      tree.setModel(&model)

      Such a tree doesn't refresh if some directory visibility changed inside that tree.

        Attachments

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

          Activity

            People

            Assignee:
            dfaure_kdab David Faure
            Reporter:
            dima077 domra frizh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes