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

QFileSystemModel not updated when USB removed

XMLWordPrintable

      • Use QFileSystemModel as a QTreeView model.
      • Set drivelist to the rootpath.
      • Plug USB drive and see it's correctly updated to the treeview.
      • Unplug USB.
        Expected: Drive is removed from the model and vanished from the treeview
        Result: Drive icon is vanhished but drive and content is still visible

      Plugging and unplugging drive needs updating model. Adding new roopath works but removing existing index doesn't update the model and treeview.

        1. usb_plugged.png
          17 kB
          Marko Kangas
        2. usb_unplugged.png
          17 kB
          Marko Kangas
        3. QTBUG-53436.zip
          1 kB
          Marko Kangas
        For Gerrit Dashboard: QTBUG-53436
        # Subject Branch Project Status CR V

            mmutz Marc Mutz
            markan Marko Kangas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes