Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.1.0 , 5.6.0, 5.15.10, 6.2.1, 6.3.0
-
Windows 7
-
8e79806d08ab77aa0f87b69a2ef65789216f41c0 (qtbase/dev, 27.10.2016, 5.9)
Description
Our team is developing testing tools for Harmattan. We have an application running on Linux and Windows and use QFileSystemModel to get a list of connected mass storage devices. On Linux we use the root path "/media" and on Windows the root path is an empty string to get a list of all drives and storage devices. This works for the most part but on Windows the used model does not update when new storage devices are connected/disconnected. Maybe QFileSystemMonitor is unable to monitor changes in the list of storage devices?
We're using Qt 4.7.0 (qt-sdk-win-opensource-2010.05)
Following workaround helps:
Calling "setRootPath" twice, one for another path (doesn't really matter which one but should be different from the cuurent one), and immediate after that set again its root path with the method "setRootPath" to desire one.
Attachments
Issue Links
- is duplicated by
-
QTBUG-59851 QFileSystemWatcher does not detect when a USB drive with watched files is removed
- Closed
-
QTBUG-8240 QFileSystemModel not updating upon removable disk removal
- Closed
-
QTBUG-53436 QFileSystemModel not updated when USB removed
- Closed
- relates to
-
QTBUG-14290 Make it possible to turn off the cache for QFileSystemModel
- Closed
- resulted in
-
QTBUG-32457 QtSystemInfo repeatedly pops up a quaint dialog about A: drive not being ready
- Closed