Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.1
-
None
-
02418d1aaa6760e08d55f0f6213d02d56b057fd2
Description
Location of temporary file changes from real temp directory to executable directory, when remove function is used.
#include <QCoreApplication> #include <QTemporaryFile> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QTemporaryFile tmpFile; if (tmpFile.open()) qDebug() << tmpFile.fileName(); tmpFile.remove(); if (tmpFile.open()) qDebug() << tmpFile.fileName(); //return a.exec(); return 0; }
This is result:
"C:/Users/theuerom/AppData/Local/Temp/tmpfiletest.Hp3912" "C:/Qt5_projects/build-tmpfiletest-Desktop_Qt_5_4_1_MinGW_32bit-Debug/.gq3912"
Attachments
Issue Links
- relates to
-
QTBUG-2557 QTemporaryFile::open() fails after QTemporaryFile::remove()
-
- Closed
-
For Gerrit Dashboard: QTBUG-46156 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
112661,2 | Set the state of QTemporaryFileEngine properly prior to reopening | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |