Results 1 to 5 of 5

Thread: How can I save the windows I have previously opened ?

  1. #1
    Join Date
    Jul 2011
    Posts
    14
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default How can I save the windows I have previously opened ?

    How can I save the windows I have previously opened so when I Press a button "back" I can show the exact prev. window with its contents .
    For example:-
    I can open a new window by button clicking on the current window and so on ..
    and when I close the existing window I find the prev one but I can't navigate between it's controls by keyboard "case of non-touch mobiles"
    It appears as not working.
    So I want to press a button "back" that closes the existing window and retrieves the previously opened one without these problems.
    Last edited by Marwa Shams; 25th September 2011 at 10:30.

  2. #2
    Join Date
    Mar 2008
    Location
    Marslev, Denmark
    Posts
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: How can I save the windows I have previously opened ?

    You can save the full state (position, size etc) of a QMainWindow with the saveState() method. When you reopen the window, you call restoreState(). Read the documentation for these two methods, they are easy to use.
    Bo Thorsen, Viking Software
    Qt applications on Linux and Windows

  3. #3
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How can I save the windows I have previously opened ?

    sounds like you are using a wizard? QWizard?

  4. #4
    Join Date
    Jul 2011
    Posts
    14
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: How can I save the windows I have previously opened ?

    no I create the back button myself
    and inside click event i close the current form
    so the prev appears.

  5. #5
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How can I save the windows I have previously opened ?

    yes, have you looked at QWizard? It does what you need...

Similar Threads

  1. Replies: 0
    Last Post: 13th April 2010, 19:27
  2. How to save a file in Windows 1250 code
    By TomASS in forum Newbie
    Replies: 7
    Last Post: 10th February 2010, 15:21
  3. Replies: 0
    Last Post: 8th April 2009, 19:52
  4. Replies: 0
    Last Post: 5th May 2008, 12:43
  5. Replies: 25
    Last Post: 15th January 2006, 00:53

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.