Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to get network drive uisng Qt
Qt 6.11 is out! See what's new in the release blog

How to get network drive uisng Qt

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.5k 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.
  • E Offline
    E Offline
    econtech
    wrote on last edited by
    #1

    How to get Network drives using Qt?

    Thanks

    1 Reply Last reply
    0
    • E Offline
      E Offline
      econtech
      wrote on last edited by
      #2

      Can any one of you help me to List all the drives including network drives using Qt code.

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xander84
        wrote on last edited by
        #3

        I don't know if Qt has a way of doing that, but this would be a start:
        @
        QFileInfoList drives = QDir::drives();
        @
        but I don't see anything in QFileInfo to detect if a drive is a network mapped drive, only if you have no letter assigned in windows so the path starts with "//"!?

        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