-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (23 loc) · 735 Bytes
/
main.cpp
File metadata and controls
29 lines (23 loc) · 735 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
#include <QtQuick/QQuickView>
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtQml/QQmlComponent>
#include <QtQuick/QQuickWindow>
#include <QtCore/QUrl>
#include <QDebug>
#include "rssapplication.h"
#include "entrypoint.h"
int main(int argc, char **argv)
{
QCoreApplication::addLibraryPath("plugins");
EntryPoint entry;
QNetworkAccessManager networkManager;
RssApplication app(argc, argv, &networkManager);
QQmlApplicationEngine engine;
QQuickWindow::setDefaultAlphaBuffer(true);
entry.setEngine(&engine);
entry.registerObjectsInEngine();
engine.load(QUrl("qrc:/main.qml"));
//engine.load(QUrl("../PodcastLoader/main.qml"));
return app.exec();
}