Results 1 to 6 of 6

Thread: How to get previous form from current form

  1. #1
    Join Date
    Feb 2011
    Posts
    29
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default How to get previous form from current form

    Hi every body,

    I want to know that i have created one form. Now i am opening another form from my current form.

    so now i am able to see new form. SO now if i want to go to previous page than how can i go to previous page from current page?

    Please reply me for this problem.

    Awaiting for your reply...

    Thanks & Regards,
    Keyur Parekh.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to get previous form from current form

    There is no ready mechanism for this. You can implement one using QStackedWidget.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2011
    Posts
    29
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: How to get previous form from current form

    Yes right,

    I have already use stack widget. So that i m able to switch from one form to another form. But if i want to come back to previous form how can i do that?

    That is my main problem.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to get previous form from current form

    Umm, you use the same method you are already using to change to another page

    Open Qt Assistant, look up QStackedWidget in the index, read about the method for changing the current page index.

  5. #5
    Join Date
    Feb 2011
    Posts
    29
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: How to get previous form from current form

    Thanks for support.

    I have solve the problem.

  6. #6
    Join Date
    Jun 2011
    Posts
    22
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to get previous form from current form

    Hi...
    I have same problem and i solved it using Loader and its source property.
    But now i have another problem in which i want to change the value of next QML file's control from current QML file.

    Waiting for quick reply..

    Thanks..

Similar Threads

  1. How to hide from taskbar a form showed form mainwindow
    By tonnot in forum Qt Programming
    Replies: 1
    Last Post: 10th February 2011, 14:36
  2. Pass variable from a form to another form
    By dark1988 in forum Qt Programming
    Replies: 5
    Last Post: 8th February 2011, 18:19
  3. Replies: 5
    Last Post: 12th March 2010, 21:43
  4. Hiding a form and opening another form
    By anafor2004 in forum Newbie
    Replies: 1
    Last Post: 20th February 2008, 15:04
  5. Calling a new form from current form
    By webgenius in forum Qt Programming
    Replies: 7
    Last Post: 8th April 2007, 19:50

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
  •  
Qt is a trademark of The Qt Company.