Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.11.0, 5.11.3, 5.12.0
-
macOS High Sierra 10.13.6 and others
-
-
21ffde85a1b4592d24785a3ba82817de05486060
Description
Reading a QML file with QFile from a resource bundle returns an empty file in release mode on MacOS.
Testing the same code in debug mode works fine.
for(auto fileName : {":/__initializer.qml", ":/__initializer.txt"}) { QFile f(fileName); if(f.open(QFile::ReadOnly)) qDebug() << fileName << ":" << f.readAll(); } // Output Debug: // :/__initializer.qml : "import QtQuick 2.0\nItem {\n // Do nothing\n}\n" // :/__initializer.txt : "This is just a test message\n" // Output Release: // :/__initializer.qml : "" // :/__initializer.txt : "This is just a test message\n"
It looks like, it just happens on MacOS. Testing on Windows works fine. Cross compiling code for Android on MacOS shows the same behaviors as on MacOS. Compiling the code on Windows for Android works fine.
Attachments
Issue Links
- relates to
-
QTBUG-73670 .js files are replaced with empty files in release builds without QML and with WebEngine
- Closed