mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
QtQuick background test
This commit is contained in:
parent
8552e08a12
commit
4453492204
6 changed files with 74 additions and 3 deletions
|
@ -1,9 +1,22 @@
|
|||
#include <QDebug>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QGuiApplication>
|
||||
#include <QString>
|
||||
|
||||
#include <JellyfinQt/jellyfin.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
QGuiApplication app(argc, argv);
|
||||
Jellyfin::registerTypes();
|
||||
app.setApplicationDisplayName(QStringLiteral("Sailfin QtQuick"));
|
||||
|
||||
qDebug() << "Creating engine";
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
qDebug() << "Registering types";
|
||||
Jellyfin::registerTypes();
|
||||
|
||||
qDebug() << "Loading file";
|
||||
engine.load(QStringLiteral("qrc:/qml/main.qml"));
|
||||
qDebug() << "Entering event loop";
|
||||
return app.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue