Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
4.8.4, 5.0.1
Description
QString stringMockText = "This file is generated by Qt.\n"; bool boolOpenPermitted = file->open(QIODevice::WriteOnly | QIODevice::Text); qDebug() << "boolOpenPermitted:" << boolOpenPermitted; bool boolWritePermitted = file->write(stringMockText.toLatin1().constData()); qDebug() << "boolWritePermitted:" << boolWritePermitted;
"C:/Program Files" dir1.exists(): true boolOpenPermitted: false boolWritePermitted: true You are permitted to write. canWriteFile(&file1): true "C:/Program Files (x86)" dir2.exists(): true boolOpenPermitted: false boolWritePermitted: true You are permitted to write. canWriteFile(&file2): true