Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

setMainQmlFile it doesn't work

$
0
0
Hi guys…. I have this qrc file: <RCC>     <qresource prefix="/">         <file>qml/pilarApp/main.qml</file>     </qresource> </RCC> and in my main.cpp I have:     QGuiApplication app(argc, argv);     QtQuick2ApplicationViewer viewer;     viewer.rootContext()->setContextProperty("PilarApp", new System);     viewer.setMainQmlFile(QStringLiteral("qrc:/qml/pilarApp/main.qml"));     viewer.showExpanded();     return app.exec(); but it doesn’t work I had try with: "qrc:/qml/pilarApp/main.qml" "qrc://qml/pilarApp/main.qml" ":/qml/pilarApp/main.qml" "://qml/pilarApp/main.qml" and the error which wtcreator give me is like this: file:///home/freddy/Trabajo/eulerideas/Salon Pilar App/qt-creator/build-pilarApp-Clang-Debug/qrc:/qml/pilarApp/main.qml: File not found in my .pro file I have defined RESOURCES += \     resource.qrc so…. what i’m doing wrong ??? best regards to everyone freddy

Viewing all articles
Browse latest Browse all 4972

Trending Articles