Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QStandardPaths Program Data
Qt 6.12 LTS is out! See what's new in the release blog

QStandardPaths Program Data

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 750 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    Is there a QStandardPaths equivalent to CSIDL_COMMON_APPDATA (or FOLDERID_ProgramData) which on Windows will typically expand to: %ALLUSERSPROFILE% (%ProgramData%, %SystemDrive%\ProgramData)?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      they are listed here. Scroll down to the bottom. You will see the table.
      https://doc.qt.io/qt-6/qstandardpaths.html#StandardLocation-enum

      DesktopLocation "~/Desktop" "C:/Users/<USER>/Desktop"
      DocumentsLocation "~/Documents" "C:/Users/<USER>/Documents"
      FontsLocation "/System/Library/Fonts" (not writable) "C:/Windows/Fonts" (not writable)
      ApplicationsLocation "/Applications" (not writable) "C:/Users/<USER>/AppData/Roaming/Microsoft/Windows/Start Menu/Programs"
      MusicLocation "~/Music" "C:/Users/<USER>/Music"
      MoviesLocation "~/Movies" "C:/Users/<USER>/Videos"
      PicturesLocation "~/Pictures" "C:/Users/<USER>/Pictures"
      TempLocation randomly generated by the OS "C:/Users/<USER>/AppData/Local/Temp"
      HomeLocation "~" "C:/Users/<USER>"
      AppLocalDataLocation "~/Library/Application Support/<APPNAME>", "/Library/Application Support/<APPNAME>". "<APPDIR>/../Resources" "C:/Users/<USER>/AppData/Local/<APPNAME>", "C:/ProgramData/<APPNAME>", "<APPDIR>", "<APPDIR>/data", "<APPDIR>/data/<APPNAME>"
      CacheLocation "~/Library/Caches/<APPNAME>", "/Library/Caches/<APPNAME>" "C:/Users/<USER>/AppData/Local/<APPNAME>/cache"
      GenericDataLocation "~/Library/Application Support", "/Library/Application Support" "C:/Users/<USER>/AppData/Local", "C:/ProgramData", "<APPDIR>", "<APPDIR>/data"
      RuntimeLocation "~/Library/Application Support" "C:/Users/<USER>"
      ConfigLocation "~/Library/Preferences" "C:/Users/<USER>/AppData/Local/<APPNAME>", "C:/ProgramData/<APPNAME>"
      GenericConfigLocation "~/Library/Preferences" "C:/Users/<USER>/AppData/Local", "C:/ProgramData"
      DownloadLocation "~/Downloads" "C:/Users/<USER>/Downloads"
      GenericCacheLocation "~/Library/Caches", "/Library/Caches" "C:/Users/<USER>/AppData/Local/cache"
      AppDataLocation "~/Library/Application Support/<APPNAME>", "/Library/Application Support/<APPNAME>". "<APPDIR>/../Resources" "C:/Users/<USER>/AppData/Roaming/<APPNAME>", "C:/ProgramData/<APPNAME>", "<APPDIR>", "<APPDIR>/data", "<APPDIR>/data/<APPNAME>"
      AppConfigLocation "~/Library/Preferences/<APPNAME>" "C:/Users/<USER>/AppData/Local/<APPNAME>", "C:/ProgramData/<APPNAME>"
      PublicShareLocation "~/Public" "C:/Users/Public"
      TemplatesLocation "~/Templates" "C:/Users/<USER>/AppData/Roaming/Microsoft/Windows/Templates"

      1 Reply Last reply
      0
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by Perdrix
        #3

        @JoeCFD said in QStandardPaths Program Data:

        AppConfigLocation or possibly > AppLocalDataLocation

        Seems to be the one

        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
        • Unsolved