-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (26 loc) · 934 Bytes
/
main.cpp
File metadata and controls
31 lines (26 loc) · 934 Bytes
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
27
28
29
30
31
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QDebug>
#include <QQmlContext>
//#include "networkmanager.h"
#include "controller.h"
#include "bluetoothmanager.h"
#include "speech.h"
int main(int argc, char *argv[])
{
qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
// NetworkManager wifi;
BluetoothManager bluetooth;
// Process myProcess;
Speech speech;
QQmlApplicationEngine engine;
// engine.rootContext()->setContextProperty("networkManager", &wifi);
// engine.rootContext()->setContextProperty("bluetoothManager", &bluetooth);
engine.rootContext()->setContextProperty("speech", &speech);
qmlRegisterType<Controller>("Controller", 1, 0, "Controller");
engine.load(QUrl(QLatin1String("qrc:/main.qml")));
// wifi.isOnline();
return app.exec();
}