import QtQuick import QtQuick.Controls import QtQuick.Layouts GridLayout { id: objectView columns: 2 Layout.fillWidth: true Layout.fillHeight: true rowSpacing: 9 Label { text: qsTr("Objektstraße") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: objectName Layout.fillWidth: true Layout.alignment: Qt.AlignVCenter onTextChanged: checkFields() placeholderText: "Pflichtfeld" placeholderTextColor: "red" //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("Leistungsort") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: leistungsortid Layout.fillWidth: true //Layout.maximumWidth: parent.width / 2 onTextChanged: checkFields() placeholderText: "Pflichtfeld" placeholderTextColor: "red" } Label { text: qsTr("Lohnanteil inkl. Fahrtkosten") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: lohnanteil Layout.fillWidth: true //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("Materialanteil") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: materialanteil Layout.fillWidth: true //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("Zusatz 1") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: zusatz1 Layout.fillWidth: true //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("Zusatz 2") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: zusatz2 Layout.fillWidth: true //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("Gesamt Netto") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: gesamtnetto Layout.fillWidth: true //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("MwSt") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: mwst Layout.fillWidth: true //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("Gesamt(Netto+MwSt)") Layout.alignment: Qt.AlignRight | Qt.AlignVCenter } TextField { id: gesamt Layout.fillWidth: true //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("Zahlungsziel") Layout.alignment: Qt.AlignRight } ComboBox { property string name: "zahlungsziel" id: zahlungsziel Layout.fillWidth: true editable: false //model: business_type textRole: "display" //Layout.maximumWidth: parent.width / 2 } Label { text: qsTr("Info") Layout.alignment: Qt.AlignRight | Qt.AlignTop } ScrollView { id: infoview Layout.fillWidth: true Layout.preferredHeight: 200 //Layout.columnSpan: 3 ScrollBar.horizontal: ScrollBar { policy: ScrollBar.AlwaysOn } TextArea { id: objectInfo property string name: "objectinfo" Layout.fillWidth: true Layout.fillHeight: true wrapMode: TextEdit.Wrap background: Rectangle { color: objectInfo.palette.base border.color: objectInfo.activeFocus? objectInfo.palette.highlight: objectInfo.palette.base } } } Item { Layout.fillHeight: true } }