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

QStandardPaths are incorrect during static initialization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.2
    • Core: I/O
    • None
    • Windows 11, x64. Visual Studio 2019
    • Windows

    Description

      A static class will receive the incorrect directory name during initialization.

      In static initialization

       

      QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);

       

      path is

      "C:/Users/Roger/AppData/Roaming"
      

       

      after static initialization, path is

      "C:/Users/Roger/AppData/Roaming/Tinta"
      

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            doug_rogers Doug Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes