-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
26 lines (21 loc) · 841 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <QApplication>
#include "qmlapplicationviewer.h"
#include "stviewer.h"
//#include <QGraphicsEffect>
//#include <QDeclarativeEngine>
Q_DECL_EXPORT int main(int argc, char *argv[])
{
// Custom start
/* qmlRegisterType<QGraphicsBlurEffect>("Effects",1,0,"Blur");
qmlRegisterType<QGraphicsColorizeEffect>("Effects",1,0,"Colorize");
qmlRegisterType<QGraphicsDropShadowEffect>("Effects",1,0,"DropShadow");
qmlRegisterType<QGraphicsOpacityEffect>("Effects",1,0,"OpacityEffect");*/
// Custom end
QScopedPointer<QApplication> app(createApplication(argc, argv));
STViewer viewer;
viewer.addImportPath(QLatin1String("modules"));
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
viewer.setSource(QUrl("qrc:/qml/main.qml"));
viewer.showExpanded();
return app->exec();
}