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. Find list of special folders in Windows using Qt
Qt 6.11 is out! See what's new in the release blog

Find list of special folders in Windows using Qt

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello,
    Is it possible to get a list of the Special Folders in Windows 7 using Qt 4.7.4
    I need to know in which directory the Operating System is installed and which folders I have write- access to.
    Special Folders will include folders like 'Desktop', 'Program Data', etc....
    These folders may or may not be hidden.

    I appreciate your time and response.
    Thank you in advance.

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

      "QDesktopServices":http://developer.qt.nokia.com/doc/qt-4.8/qdesktopservices.html#storageLocation

      For the Windows folder I either would use qgetenv("WINDIR") or native GetWindowsDirectory().

      Use QFile or QFileInfo to determine if the directory is writable or not.

      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