Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48234

QStandardPaths::ConfigLocation returns wrong paths on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.4.2, 5.5.0
    • Core: I/O
    • None
    • Windows 8.1 64 bits French

    Description

      With this program:

      #include <QCoreApplication>
      #include <QStandardPaths>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
      
          foreach(const QString &path, QStandardPaths::standardLocations(QStandardPaths::ConfigLocation))
              printf("path=%s\n", qPrintable(path));
      }
      

      The Qt 5.3 returns:
      path=C:/Users/Alexis/AppData/Local/paths
      path=C:/ProgramData/paths
      path=C:/Products/build-paths-Desktop_Qt_5_3_MSVC2013_OpenGL_32bit-Debug/debug
      path=C:/Products/build-paths-Desktop_Qt_5_3_MSVC2013_OpenGL_32bit-Debug/debug/data

      but Qt 5.4.2 and Qt 5.5.0 return:
      path=C:/Users/Alexis/AppData/Local/paths
      path=C:/Users/Alexis/AppData/Local/paths
      path=C:/Products/build-paths-Desktop_Qt_5_4_2_MSVC2013_OpenGL_32bit-Debug/debug
      path=C:/Products/build-paths-Desktop_Qt_5_4_2_MSVC2013_OpenGL_32bit-Debug/debug/data

      The second entry is wrong.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              laknoll Lars Knoll
              toteme Alexis Leseigneur
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes