Results 1 to 3 of 3

Thread: clickevent in qml.

  1. #1
    Join Date
    Oct 2011
    Posts
    4

    Default clickevent in qml.

    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.

  2. #2
    Join Date
    Oct 2011
    Posts
    4

    Default Re: clickevent in qml.

    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...

  3. #3
    Join Date
    Oct 2010
    Location
    India
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: clickevent in qml.

    It can be achieved easily.. You have to read the basic elements of QML. Ok here we go.
    Qt Code:
    1. Button {
    2. id: "button1"
    3. MouseArea {
    4. anchor.fill : parent
    5. OnClicked: { parentScreen.visible = false; screen2.visible = true; }
    6. }
    To copy to clipboard, switch view to plain text mode 

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

Similar Threads

  1. QtWebKit and clickEvent from textarea
    By keen in forum Qt Programming
    Replies: 0
    Last Post: 30th June 2010, 16:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.