chore: baseline usable version
This commit is contained in:
42
libs/qwindowkit/examples/qml/main.qml
Normal file
42
libs/qwindowkit/examples/qml/main.qml
Normal file
@@ -0,0 +1,42 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Window 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
|
||||
FramelessWindow {
|
||||
property FramelessWindow childWindow: FramelessWindow {
|
||||
showWhenReady: false
|
||||
}
|
||||
|
||||
Drawer {
|
||||
id: drawer
|
||||
width: 0.66 * parent.width
|
||||
height: parent.height
|
||||
edge: Qt.RightEdge
|
||||
onAboutToShow: titleBar.enabled = false
|
||||
onAboutToHide: titleBar.enabled = true
|
||||
|
||||
Label {
|
||||
text: "Content goes here!"
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
anchors {
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
bottom: parent.bottom
|
||||
bottomMargin: 20
|
||||
}
|
||||
spacing: 10
|
||||
|
||||
Button {
|
||||
text: qsTr("Open Child Window")
|
||||
onClicked: childWindow.visible = true
|
||||
}
|
||||
|
||||
Button {
|
||||
text: qsTr("Open Drawer")
|
||||
onClicked: drawer.visible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user