1 Attachment(s)
How to distribute a qt quick application to a computer without QT installed?
Hi,
I develops a Qt Quick application with QT5.3 , mingwin32. It runs OK on my computer after copy all Qt5XX.dll to work folder, please see my attached picture. But when I copy the folder to other computer without Qt installed, no window shows, and outputs bellow error message:
Code:
QQmlApplicationEngine failed to load component
qrc:///main.qml:2 module "QtQuick.Window" is not installed
qrc:///main.qml:1 module "QtQuick" is not installed
qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
qrc:///main.qml:5 module "QtQuick.Controls" is not installed
qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
qrc:///main.qml:2 module "QtQuick.Window" is not installed
qrc:///main.qml:1 module "QtQuick" is not installed
qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
qrc:///main.qml:5 module "QtQuick.Controls" is not installed
qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
qrc:///main.qml:2 module "QtQuick.Window" is not installed
qrc:///main.qml:1 module "QtQuick" is not installed
qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
qrc:///main.qml:5 module "QtQuick.Controls" is not installed
qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
qrc:///main.qml:2 module "QtQuick.Window" is not installed
qrc:///main.qml:1 module "QtQuick" is not installed
qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
qrc:///main.qml:5 module "QtQuick.Controls" is not installed
qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
qrc:///main.qml:2 module "QtQuick.Window" is not installed
qrc:///main.qml:1 module "QtQuick" is not installed
qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
qrc:///main.qml:5 module "QtQuick.Controls" is not installed
qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
qrc:///main.qml:2 module "QtQuick.Window" is not installed
qrc:///main.qml:1 module "QtQuick" is not installed
qrc:///main.qml:6 module "QtQuick.XmlListModel" is not installed
qrc:///main.qml:5 module "QtQuick.Controls" is not installed
qrc:///main.qml:4 module "QtQuick.Layouts" is not installed
qrc:///main.qml:3 module "QtQuick.Dialogs" is not installed
It seems that application do not know how to load qml modules. Another information is that the application developed by QWidget can run in this folder.
What shall I do to tell application to look for modules in work folder?
Re: How to distribute a qt quick application to a computer without QT installed?
You need to deploy the required modules with the application. They are located inside qml subdirectory of your Qt installation.
Re: How to distribute a qt quick application to a computer without QT installed?
After I copy qml\xxx to workdir\xxx, it works. Great!