Solved QFileSystemModel and USB drive
-
Hi,
I created a QTreeView using QFileSystemModel to browse the directory structure of drives. When I connect my usb drive to my computer, the explorer shows new drive letter. But the treeView does not show any changes. It did not show my Usb drive. I had to close my program and run again to show it. Is it a bug or how can I fix this problem? -
Hi! It's QTBUG-18729. It has been fixed in Qt 5.9.
-
@Wieland
Thank you for the information,
I can see two attachments on the link you provided.0001-QFileSystemWatcher-Win32-Listen-for-WM_DEVICECHANGE_56_161028.patch
28/Oct/16 6:41 AM
20 kB
0002-QFileInfoGatherer-Win32-Connect-to-drive-arrival-rem_56_161028.patch
28/Oct/16 6:41 AM
4 kB
Do I have to apply patch for both files? Which one should be applied first? -
"0001..." is the first, "0002..." the second. These patches are back-ported for 5.6 LTS. You need to apply both of them.
-
@Wieland
Is there any order that I have to follow. Can I apply any patch first? -
@samdol Didn't @Wieland clearly say in which order you need to apply the patches?
-
Thank you for the advise. I appreciate it.
-
@samdol Can you not just wait for the 5.9 release and then update? Might be easier than applying patches.