Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFileSystemModel and USB drive

QFileSystemModel and USB drive

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    samdol
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! It's QTBUG-18729. It has been fixed in Qt 5.9.

      S 1 Reply Last reply
      3
      • ? A Former User

        Hi! It's QTBUG-18729. It has been fixed in Qt 5.9.

        S Offline
        S Offline
        samdol
        wrote on last edited by
        #3

        @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?

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          "0001..." is the first, "0002..." the second. These patches are back-ported for 5.6 LTS. You need to apply both of them.

          S 1 Reply Last reply
          1
          • ? A Former User

            "0001..." is the first, "0002..." the second. These patches are back-ported for 5.6 LTS. You need to apply both of them.

            S Offline
            S Offline
            samdol
            wrote on last edited by
            #5

            @Wieland
            Is there any order that I have to follow. Can I apply any patch first?

            jsulmJ 1 Reply Last reply
            0
            • S samdol

              @Wieland
              Is there any order that I have to follow. Can I apply any patch first?

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @samdol Didn't @Wieland clearly say in which order you need to apply the patches?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                samdol
                wrote on last edited by
                #7

                Thank you for the advise. I appreciate it.

                ? 1 Reply Last reply
                0
                • S samdol

                  Thank you for the advise. I appreciate it.

                  ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #8

                  @samdol Can you not just wait for the 5.9 release and then update? Might be easier than applying patches.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved