Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

I can't run static qt-qml app on another computer

$
0
0
I built qt statically with params: C:\Qt5.3\5.3\StaticQt>configure -prefix c:\Qt5.3\5.3\StaticQt\qtbase -opensource -static -release -opengl desktop -nomake examples -nomake tests -confirm-license Added this built in Qt Versions (with warning: non-installed -prefix build – for internal development only), make corresponding Kit. App size = 24Mb. I can run app on my own computer with Windows 7 not from QtCreator. But from another desktop with Win7 and WinXP i can’t run it. The program is really runs (in Task Manager) but i do not see interface. Help me please! .pro file: TEMPLATE = app   QT += qml quick widgets   SOURCES += main.cpp   RESOURCES += qml.qrc   # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH =   # Default rules for deployment. include(deployment.pri) .cpp #include <QApplication> #include <QQmlApplicationEngine>   int main(int argc, char *argv[]) {     QApplication app(argc, argv);       QQmlApplicationEngine engine;     engine.load(QUrl(QStringLiteral("qrc:///main.qml")));       return app.exec(); } .qml import QtQuick 2.2 import QtQuick.Controls 1.1   ApplicationWindow {     visible: true     width: 640     height: 480     title: qsTr("Hello World")       menuBar: MenuBar {         Menu {             title: qsTr("File")             MenuItem {                 text: qsTr("Exit")                 onTriggered: Qt.quit();             }         }     }       Text {         text: qsTr("Hello World")         anchors.centerIn: parent     } } This is a standard template for QtQuick projects. P.S. i am a newbie in qt and i need your help!

Viewing all articles
Browse latest Browse all 2113

Trending Articles