mirror of
https://github.com/QuasarApp/DocsSite.git
synced 2025-04-27 04:24:32 +00:00
first build version
This commit is contained in:
parent
c5919f85c1
commit
11a2438ea1
@ -35,6 +35,6 @@ file(GLOB SOURCE_CPP
|
||||
)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCE_CPP})
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick QuasarApp)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick ViewSolutions QuasarApp)
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/Private")
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 67a28414f7d2ad40d7acb900161e58da817d4168
|
||||
Subproject commit f570fd5c13b89acd0e944b38fb0e54e23e8502c6
|
@ -2,10 +2,20 @@ import QtQuick 2.14
|
||||
import QtQuick.Window 2.14
|
||||
import QtQuick.Controls 2.14
|
||||
import QtQuick.Controls.Material 2.14
|
||||
import ViewSolutionsModule 1.0
|
||||
|
||||
Window {
|
||||
visible: true
|
||||
width: 640
|
||||
height: 480
|
||||
title: qsTr("Hello World")
|
||||
|
||||
ImageView {
|
||||
anchors.fill: parent
|
||||
soucre: "qrc:/img/images/HanoiLogoAlpha.png"
|
||||
text: "Logo of Hanoi towers"
|
||||
anchors.margins: 100
|
||||
// background: "red"
|
||||
borderColor: "red"
|
||||
}
|
||||
}
|
||||
|
BIN
Site/src/images/HanoiLogoAlpha.png
Normal file
BIN
Site/src/images/HanoiLogoAlpha.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 89 KiB |
@ -1,5 +1,6 @@
|
||||
#include <QGuiApplication>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <viewsolutions.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@ -7,7 +8,12 @@ int main(int argc, char *argv[])
|
||||
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
if (!ViewSolutions::init(&engine)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
const QUrl url(QStringLiteral("qrc:/View/main.qml"));
|
||||
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
|
||||
&app, [url](QObject *obj, const QUrl &objUrl) {
|
||||
|
@ -3,4 +3,7 @@
|
||||
<file>View/main.qml</file>
|
||||
<file>View/Header.qml</file>
|
||||
</qresource>
|
||||
<qresource prefix="/img">
|
||||
<file>images/HanoiLogoAlpha.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Loading…
x
Reference in New Issue
Block a user