Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Accessing TabView component (accessing children properties of component)

$
0
0
There are several ways to do this based on scoping rules. One solution is for instance to share root properties that your text fields update when modified or accepted. import QtQuick.Controls 1.1 import QtQuick 2.1   Item {     width: 500     height: 500     property string typeResult     Label {         y: 200         id: saveBtn         text: "Text field is now " + typeResult     }     TabView {         Component.onCompleted: { addTab("Type", typeComoponent); }         Component {             id: typeComoponent             GroupBox{ TextField { anchors.centerIn: parent ; onTextChanged: typeResult = text} }         }     } }

Viewing all articles
Browse latest Browse all 4972

Trending Articles