OnClicked issues
-
can you have onClicked do 2 operations?
such as
@ MouseArea {
id: mousearea11
x: 56
y: 51
width: 118
height: 110
anchors.rightMargin: 502
anchors.bottomMargin: 286
anchors.leftMargin: 56
anchors.topMargin: 51
anchors.fill: parent
onClicked: mainLoader.source = "load_images.qml"
onClicked: page.state = 'State1'
}@ -
Yes you can.
@
MouseArea {
id: mousearea11
x: 56
y: 51
width: 118
height: 110
anchors { fill:parent; rightMargin: 502; bottomMargin: 286; leftMargin: 56; topMargin: 51 }onClicked: { mainLoader.source = "load_images.qml"; page.state = 'State1'; }
}
@