debian:~/project/tmp/release# tree
.
|-- main.exe
`-- qml
|-- BasicButton.qml
|-- Battery.qml
|-- Calendar.qml
|-- main.qml
.
|-- main.exe
`-- qml
|-- BasicButton.qml
|-- Battery.qml
|-- Calendar.qml
|-- main.qml
#include <QApplication> #include <QDeclarativeView> #include <QDeclarativeContext> #include <QDeclarativeEngine> int main(int argc, char *argv[]) { QApplication app(argc, argv); QDeclarativeView view; view.engine()->setBaseUrl(QUrl("./qml/")); view.setSource(QUrl("main.qml")); view.show(); return app.exec(); }
No comments:
Post a Comment