Reputation: 13
I am using FileDialog from Qt.labs.platform 1.1 on win 10 in Qt creator, compilator I use is Desktop Qt 5.15.2. MinGW 64 bit.
In the debug mode is working everthing fine but when I change to release mode I get following error in from the compilator:
QQmlApplicationEngine failed to load component
qrc:/main.qml:6:1: module "Qt.labs.platform" is not installed
I tried things like clean and rebuild or restart the computer and also change the number of import version but nothing helps. Any ideas how to solve that, please?
Upvotes: 1
Views: 3077
Reputation: 348
Qt Version | Package |
---|---|
5 | qml-module-qt-labs-platform |
6 | qml6-module-qt-labs-platform |
Upvotes: 1
Reputation: 53
Check folder, where you are building your release (where *.exe is generated): does it contains some Qt's *.dll's? If yes: there is two ways to resolve your problem:
Why you have such error from the compilator? Because you have some Qt *.dll's in your release folder (beside the *.exe), but not all needed (e.g. you have only Qt6Core.dll). So Qt Creator will find this dll and will try to find other dll's in your release folder. Qt Creator will not check its installation directory to get dll's. But if you have no Qt *.dll's in your release folder, then Qt Creator will find them in its installation directory.
Upvotes: 0