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

QTemporaryDir does not work as expected on Windows 10

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes