This commit is contained in:
+9
-2
@@ -5,11 +5,18 @@ qt_add_executable(${target}
|
||||
)
|
||||
|
||||
qt_add_qml_module(${target}
|
||||
URI app
|
||||
URI "app"
|
||||
VERSION 0.1.0
|
||||
QML_FILES
|
||||
main.qml
|
||||
)
|
||||
|
||||
target_compile_features(${target} PRIVATE cxx_std_23)
|
||||
|
||||
target_link_libraries(${target} PRIVATE Qt6::Quick)
|
||||
target_link_libraries(${target}
|
||||
PRIVATE
|
||||
Qt6::Charts
|
||||
Qt6::Quick
|
||||
project_core
|
||||
project_viewsplugin
|
||||
)
|
||||
+32
-12
@@ -1,21 +1,41 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import ProjectViews
|
||||
|
||||
ApplicationWindow {
|
||||
width: 400
|
||||
height: 400
|
||||
id: app
|
||||
width: 1280
|
||||
height: 720
|
||||
visible: true
|
||||
title: "LR-EnviroCommand"
|
||||
|
||||
Button {
|
||||
id: button
|
||||
text: "A Special Button"
|
||||
background: Rectangle {
|
||||
implicitWidth: 100
|
||||
implicitHeight: 40
|
||||
color: button.down ? "#d6d6d6" : "#f6f6f6"
|
||||
border.color: "#26282a"
|
||||
border.width: 1
|
||||
radius: 4
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
Rectangle {
|
||||
width: 220
|
||||
Layout.fillHeight: true
|
||||
|
||||
Column {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 20
|
||||
spacing: 16
|
||||
|
||||
Button { text: "Dashboard" }
|
||||
Button { text: "Telemetry" }
|
||||
Button { text: "Logs" }
|
||||
Button { text: "Firmware" }
|
||||
Button { text: "Remote Commands" }
|
||||
Button { text: "Settings" }
|
||||
}
|
||||
}
|
||||
|
||||
StackView {
|
||||
id: stackView
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
initialItem: Dashboard { }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user