-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
22 lines (21 loc) · 724 Bytes
/
main.cpp
File metadata and controls
22 lines (21 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <QApplication>
#include <QQmlApplicationEngine>
#include "colorwheel.h"
#include "huewheel.h"
#include "wheelcontroller.h"
#include "template.h"
#include "myimage.h"
GlobalTemplate GT;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qmlRegisterType<MyImage>("Images", 1, 0, "MyImage");
qmlRegisterType<HueWheel>("Images", 1, 0, "HueWheel");
//qmlRegisterType<MyVideoProbe>("Images", 1, 0, "MyVideoProbe");
QQmlApplicationEngine engine;
engine.addImageProvider(QLatin1String("wheelcontroller"), new WheelController);
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
//ColorWheel colorwheel;
//colorwheel.show();
return app.exec();
}