From 2997cb8cfb0d17758a38aff036d6ff506758a3de Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Fri, 17 Jul 2020 16:33:41 +0200 Subject: Initial commit (Empty Qt Quick application) --- main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 main.cpp (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..6333b85 --- /dev/null +++ b/main.cpp @@ -0,0 +1,16 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + + QGuiApplication app(argc, argv); + + QQmlApplicationEngine engine; + engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); + if (engine.rootObjects().isEmpty()) + return -1; + + return app.exec(); +} -- cgit v1.2.3