GUI Object

This commit is contained in:
2025-01-13 15:28:22 +01:00
parent 7f26e4d898
commit edaad51ea7
11 changed files with 1109 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
GridLayout
{
id: oaoemployee
columns: 2
rows: 4
Label
{
text: qsTr("Mitarbeiter")
}
ScrollView
{
Layout.rowSpan: 3
Layout.fillWidth: true
TextArea
{
id: mitarbeitertext
implicitWidth: parent.width
implicitHeight: 100
wrapMode: TextEdit.Wrap
background: Rectangle
{
color: mitarbeiterhin.palette.base
border.color: mitarbeiterhin.activeFocus? mitarbeiterhin.palette.highlight: mitarbeiterhin.palette.base
}
}
}
Button
{
id: mitarbeiterhin
property var neuermitarbeiter: undefined
text: qsTr("Mitarbeiter hinzufügen")
Layout.columnSpan: 2
Layout.fillWidth: true
Layout.alignment: Qt.AlignRight
Layout.maximumWidth: mitarbeitertext.width
onClicked:
{
var nm = Qt.createComponent("AddObjectEmployee.qml")
if (nm.status === Component.Ready)
{
neuermitarbeiter = nm.createObject (appWindow, {width: 600, height: 400})
neuermitarbeiter.show()
}
}
}
}