-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
28 lines (21 loc) · 838 Bytes
/
main.cpp
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
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QTranslator>
#include <QDebug>
#include <QSslSocket>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
app.setOrganizationName("ttris.lduboeuf");
app.setApplicationName("ttris.lduboeuf");
QTranslator myappTranslator;
qDebug() << myappTranslator.load(QLocale(), QLatin1String("base"), QLatin1String("_"), QLatin1String(":/i18n"));
app.installTranslator(&myappTranslator);
QQmlApplicationEngine engine;
engine.addImportPath("qrc:/qml/");
engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
//qDebug()<< "Default path >> "+engine.offlineStoragePath();
qDebug() << QSslSocket::sslLibraryBuildVersionString();
return app.exec();
}