Initial import

This commit is contained in:
2019-11-04 10:21:20 -05:00
commit 11abef8497
5 changed files with 39 additions and 0 deletions

4
src/CMakeLists.txt Normal file
View File

@@ -0,0 +1,4 @@
qt5_add_resources(qiflora_SRCS resources.qrc)
add_executable(qiflora main.cpp ${qiflora_SRCS})
target_link_libraries(qiflora Qt5::Qml Qt5::Gui)

9
src/main.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine(QUrl(QStringLiteral("qrc:/qml/main.qml")));
return app.exec();
}

14
src/qml/main.qml Normal file
View File

@@ -0,0 +1,14 @@
import QtQuick 2.0
import QtQuick.Window 2.0
Window
{
visible: true
width: 300
height: 240
Rectangle {
anchors.fill: parent
color: "steelblue"
}
}

5
src/resources.qrc Normal file
View File

@@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>qml/main.qml</file>
</qresource>
</RCC>