1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-25 10:25:17 +00:00
harbour-sailfin/qtquick/src/main.cpp

28 lines
630 B
C++
Raw Normal View History

#define QT_DEBUG
#define QT_QML_DEBUG
#include <QtQuick>
//#endif
2021-02-16 17:01:17 +00:00
#include <QDebug>
#include <QQmlApplicationEngine>
#include <QGuiApplication>
2021-02-16 17:01:17 +00:00
#include <QString>
#include <JellyfinQt/jellyfin.h>
int main(int argc, char** argv) {
QGuiApplication app(argc, argv);
2021-02-16 17:01:17 +00:00
app.setApplicationDisplayName(QStringLiteral("Sailfin QtQuick"));
qDebug() << "Creating engine";
QQmlApplicationEngine engine;
qDebug() << "Registering types";
Jellyfin::registerTypes();
2021-02-16 17:01:17 +00:00
qDebug() << "Loading file";
engine.load(QStringLiteral("qrc:/qml/main.qml"));
qDebug() << "Entering event loop";
return app.exec();
}