Commit 0e9881a3 authored by Camilo Higuita's avatar Camilo Higuita

first iteration making use of MauiKit

parents
QT += quick
CONFIG += c++11
DEFINES += QT_DEPRECATED_WARNINGS
include(mauikit/mauikit.pri)
SOURCES += \
main.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "mauikit/src/mauikit.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
#ifdef MAUI_APP
MauiKit::getInstance().registerTypes();
#endif
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Window 2.2
import org.kde.kirigami 2.0 as Kirigami
import org.kde.maui 1.0 as Maui
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
header: Maui.ToolBar
{
}
}
mauikit @ 6068795a
Subproject commit 6068795a75f3a74e1bfdb84dc93d90d72c6631bd
<RCC>
<qresource prefix="/">
<file>main.qml</file>
</qresource>
</RCC>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment