Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import QtQuick.Controls 1.0
- import QtQuick.Layouts 1.0
- ApplicationWindow {
- property int margin: 11
- width: mainLayout.implicitWidth + 2 * margin
- height: mainLayout.implicitHeight + 2 * margin
- minimumWidth: mainLayout.Layout.minimumWidth + 2 * margin
- minimumHeight: mainLayout.Layout.minimumHeight + 2 * margin
- ColumnLayout {
- id: mainLayout
- anchors.fill: parent
- anchors.margins: margin
- TextField {
- id: nameField
- Layout.minimumHeight: 30
- Layout.fillHeight: true
- Layout.fillWidth: true
- Binding { target: testData; property: "name"; value: nameField.text }
- Binding { target: nameField; property: "text"; value: testData["name"] }
- }
- TextField {
- id: phoneField
- Layout.minimumHeight: 30
- Layout.fillHeight: true
- Layout.fillWidth: true
- Binding { target: testData; property: "phone"; value: phoneField.text }
- Binding { target: phoneField; property: "text"; value: testData["phone"] }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement