forked from qt-creator/qt-creator
Also add the import path to the example main.cpp file. Task-number: QDS-805 Change-Id: I990e5dc364d610a4cef5697b3355147f9e5fcde1 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
20 lines
441 B
C++
20 lines
441 B
C++
#include <QGuiApplication>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QQuickView>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
QQuickView view;
|
|
view.engine->addImportPath("qrc:/qml/imports");
|
|
view.setSource(QUrl("qrc:/qml/ProgressBar.ui.qml"));
|
|
if (!view.errors().isEmpty())
|
|
return -1;
|
|
view.show();
|
|
|
|
app.exec();
|
|
}
|