Deploy QWidgets app with with QQuickWidgets and Qt6Quick dependencies
Solved
Installation and Deployment
-
Hi,
I'm trying to prepare an application built with Qt 6.7.2 - MSVC2019 for deployment with online installer, and my first step is to get it running independently (outside build folder).
After running windeployqt and collecting all missing dll's, I have a running app, but the initial qml page is blank.
I ran the app from command line after running DebugView, and this is what the error messages I have:qrc:/qt/qml/Qml/MainView.qml:7:1: module "QtQuick.Layouts" is not installed import QtQuick.Layouts qrc:/qt/qml/Qml/MainView.qml:6:1: module "QtQuick.Controls.Material" is not installed import QtQuick.Controls.Material qrc:/qt/qml/Qml/MainView.qml:5:1: module "QtQuick.Controls" is not installed import QtQuick.Controls qrc:/qt/qml/Qml/MainView.qml: module "QtQml.WorkerScript" is not installed
I expected the solution to this was to get the dll for these modules, so I copied these from C:\Qt\6.7.2\msvc2019_64\bin:
- Qt6QmlWorkerScript.dll
- Qt6QuickLayouts.dll
- Qt6QuickControls2.dll
- Qt6QuickControls2Material.dll
to the root folder containing the other dll's and the exe file.
I'm still facing the same issue and error messages. Any suggestions on what i did wrong or what I can do to fix this?
-