25 lines
588 B
C++
25 lines
588 B
C++
|
#include <QQuickStyle>
|
||
|
#include <QGuiApplication>
|
||
|
#include <QtQml/QQmlContext>
|
||
|
#include <QQmlApplicationEngine>
|
||
|
|
||
|
#include "headers/serverconn.h"
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||
|
|
||
|
QGuiApplication app(argc, argv);
|
||
|
|
||
|
QQuickStyle::setStyle("Material");
|
||
|
|
||
|
qmlRegisterType<ServerConn>("com.itsblue.digitalRockRanking", 1, 0, "ServerConn");
|
||
|
|
||
|
QQmlApplicationEngine engine;
|
||
|
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
||
|
if (engine.rootObjects().isEmpty())
|
||
|
return -1;
|
||
|
|
||
|
return app.exec();
|
||
|
}
|