Inital commit of the Komplex Hub

This commit is contained in:
Digital Artifex
2026-06-02 15:11:36 -04:00
commit 96a7c71a29
290 changed files with 21517 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
target_sources(${CMAKE_PROJECT_NAME} PUBLIC
"main.cpp"
)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Gui
Qt${QT_VERSION_MAJOR}::Widgets
Qt${QT_VERSION_MAJOR}::Quick
Qt${QT_VERSION_MAJOR}::Qml)
+36
View File
@@ -0,0 +1,36 @@
/*
* This file is automatically generated by Qt Design Studio.
* Do not change.
*/
#ifndef APP_ENVIRONMENT_H
#define APP_ENVIRONMENT_H
#include <QGuiApplication>
#include "qqmlextensionplugin.h"
Q_IMPORT_QML_PLUGIN(KomplexHubPlugin)
Q_IMPORT_QML_PLUGIN(KomplexHubContentPlugin)
const char mainQmlFile[] = "qrc:/qt/qml/KomplexHubContent/App.qml";
#ifdef BUILD_QDS_COMPONENTS
Q_IMPORT_QML_PLUGIN(QtQuick_Studio_ComponentsPlugin)
Q_IMPORT_QML_PLUGIN(QtQuick_Studio_EffectsPlugin)
Q_IMPORT_QML_PLUGIN(QtQuick_Studio_ApplicationPlugin)
Q_IMPORT_QML_PLUGIN(FlowViewPlugin)
Q_IMPORT_QML_PLUGIN(QtQuick_Studio_LogicHelperPlugin)
Q_IMPORT_QML_PLUGIN(QtQuick_Studio_MultiTextPlugin)
Q_IMPORT_QML_PLUGIN(QtQuick_Studio_EventSimulatorPlugin)
Q_IMPORT_QML_PLUGIN(QtQuick_Studio_EventSystemPlugin)
#endif
inline void set_qt_environment() {
qputenv("QML_COMPAT_RESOLVE_URLS_ON_ASSIGNMENT", "1");
qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
qputenv("QT_LOGGING_RULES", "qt.qml.connections=false");
qputenv("QT_QUICK_CONTROLS_CONF", ":/qtquickcontrols2.conf");
}
#endif // APP_ENVIRONMENT_H
+46
View File
@@ -0,0 +1,46 @@
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QApplication>
#include <QQmlApplicationEngine>
#include <qobject.h>
#include <qqml.h>
#include <QPalette>
#include <QStyle>
#include <QQuickStyle>
#include <QTextStream>
#include <QSurface>
#include <QStyleFactory>
#include <QColorSpace>
#include <QQuickWindow>
#include <QSurfaceFormat>
#include <QSGRendererInterface>
#include "autogen/environment.h"
int main(int argc, char *argv[])
{
set_qt_environment();
QCoreApplication::setOrganizationName("DigitalArtifex");
QCoreApplication::setApplicationName("KomplexHub");
QCoreApplication::setApplicationVersion("1.0");
QApplication app(argc, argv);
QQmlApplicationEngine engine;
const QUrl url(mainQmlFile);
QObject::connect(
&engine, &QQmlApplicationEngine::objectCreated, &app,
[url](QObject *obj, const QUrl &objUrl) {
if (!obj && url == objUrl)
QCoreApplication::exit(-1);
}, Qt::QueuedConnection);
engine.addImportPath(QCoreApplication::applicationDirPath() + "/qml");
engine.addImportPath(":/");
engine.load(url);
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}