This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
fanny-app/source/main.cpp

28 lines
671 B
C++
Raw Normal View History

2018-06-21 08:47:09 +02:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QGuiApplication>
#include <QQuickView>
#include <QStandardPaths>
#include <QtQml>
#include <QtNetwork>
#include <QQmlApplicationEngine>
#include "serverconn.h"
int main(int argc, char *argv[])
{
ServerConn * pServerConn = new ServerConn;
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
engine.rootContext()->setContextProperty("_cppServerConn", pServerConn);
return app.exec();
}