PDA

View Full Version : clickevent in qml.



juju
31st October 2011, 09:59
hello i am using QML for the ui design of my application. in the main screen i have two buttons when i clicked the first button it should take me to the next screen. how can i achieve this in the qml ????? ie

screen 1

button ---->clicked---->should show the next ui screen.

juju
2nd November 2011, 05:04
is there anyone to solve my problem??? i need to switch between the qml view. i need to move from one qml screen to the other qml screen !!!!!!!!!!!!! ie switching from one qml screen to another... thanks for any help...

raja26
3rd November 2011, 17:25
It can be achieved easily.. You have to read the basic elements of QML. Ok here we go.


Button {
id: "button1"
MouseArea {
anchor.fill : parent
OnClicked: { parentScreen.visible = false; screen2.visible = true; }
}


You can use different animations to make a beautiful transition from one page to another.