×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    6

    Back Button mechanics in Qt.Quick

    Hi gurus,
    Sorry for maybe a lame question, but...I am trying to implement a button within my app, whose function is just to go back to previous "state".
    Right now my button returns a user to home screen (which is a Base State) via this code:
    onClicked: mainScreen.state = ''

    I would love to see something like this working:
    onClicked: mainScreen.state = 'previous'

    But it is not...what is the easiest technic to make Back button mechanics to work?

    Thanks in advance!

  2. #2
    Registered User
    Join Date
    May 2009
    Location
    Guatemala
    Posts
    186

    Re: Back Button mechanics in Qt.Quick

    You will probably need to store the states in a stack (an array), so you can go back as many times as state changes occurred. This could be done in javascript.
    -CarlosDL

Similar Threads

  1. How to compile QML/QT Quick project in QT Creator?
    By useryy in forum [Archived] Qt SDKs and Tools
    Replies: 2
    Last Post: 2011-03-15, 05:49
  2. Replies: 1
    Last Post: 2011-03-06, 21:28
  3. Replies: 1
    Last Post: 2010-04-25, 23:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×