Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.1
- Rectangle {
- signal inputsChanged(string one, string two);
- function updateAnswer(text) {
- c.text = text;
- }
- id: container
- width: 200
- height: 200
- color: "white"
- Column {
- anchors.centerIn: parent
- Row {
- TextInput {
- width: container.width - 40 ;
- id: a
- fillColor: "lightgray"
- font.bold: true
- objectName: "a"
- onAccepted: inputsChanged(a.text, b.text)
- }
- }
- spacing:10
- Row {
- TextInput {
- width: container.width - 40 ;
- id: b
- fillColor: "lightgray"
- font.bold: true
- objectName: "b"
- onAccepted: inputsChanged(a.text, b.text)
- }
- }
- Row {
- TextInput {
- width: container.width - 40 ;
- id: c
- objectName: "c"
- fillColor: "lightgray"
- font.bold: true
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement