Module "Qt.labs.platform" is not installed in release
-
wrote on 10 Apr 2021, 06:56 last edited by
Hi,
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 installedI tried thinks 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?
-
wrote on 12 Jul 2021, 08:53 last edited by
Hi,
I have same problem, could you tell me how to fix if you know -
wrote on 19 Sept 2021, 19:35 last edited by
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:- Remove all Qt *.dll's and run your application from Qt Creator (then Qt Creator will take all Qt *.dll's from folder, where Qt is installed).
- Or add all needed Qt *.dll's with correct folder structure to folder with your release *.exe (to do it for Windows release use windeployqt tool: https://doc.qt.io/qt-6/windows-deployment.html )
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. -
wrote on 18 Jun 2022, 06:38 last edited by
Hi Ivan Kosik,
Thank you very much. My issue was solve when follow your method of remove all QT *.dll
BRs
-
wrote on 30 Apr 2023, 16:13 last edited by
@Ivan-Kosik, did you write https://stackoverflow.com/a/69246490/9731176?
-