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

QTemporaryDir does not work as expected on Windows 10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.9.2
    • None
    • Windows 10 x86 (msvc2015)
      Qt 5.9.2

    Description

      QTemporaryDir does not work as expected on Windows 10

      QString path = QDir::tempPath() + "/" + "QtCreator" + "-XXXXXX";
      QTemporaryDir dir(path);
      qDebug() << path << dir.path();
      

      path is: "C:/Users/Thomas/AppData/Local/Temp/QtCreator-XXXXXX"
      dir.path is : ""

      I found this when building Qt Creator with Qt 5.9.2.

      With Qt 5.10 (RC) I get the expected result.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              thohartm Thomas Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes