Init
This commit is contained in:
commit
8069dfcdc2
10 files changed
+229
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import App
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
ApplicationWindow {
|
||||
id: root
|
||||
width: 1000; height: 650
|
||||
visible: true
|
||||
title: "Application"
|
||||
|
||||
Label {
|
||||
text: "Application"
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
#include <QGuiApplication>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <qcoreapplication.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
QCoreApplication::setOrganizationName("hexstudios");
|
||||
QCoreApplication::setApplicationName("dndtool");
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
QObject::connect(
|
||||
&engine, &QQmlApplicationEngine::objectCreationFailed,
|
||||
&app, []() { QCoreApplication::exit(-1); },
|
||||
Qt::QueuedConnection);
|
||||
|
||||
engine.loadFromModule("App", "Main");
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
Reference in new issue
Block a user