Results 1 to 3 of 3

Thread: Help saving and restoring the states of the an Mdi Area and subwindows

  1. #1
    Join Date
    Jun 2008
    Posts
    83
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Help saving and restoring the states of the an Mdi Area and subwindows

    Hi:

    I have a QMainWindow with an Mdi Area with two subwindows I would like to save (using QSettings) the size and positions of the subwindows.

    How can I do this? I have tried with the save and restore state fo the QMainWindow but it did not work.

    Thank you for any help.

  2. #2
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help saving and restoring the states of the an Mdi Area and subwindows

    I have had no luck with QSettings. I save my main window and dialog window positions, sizes, and colors to a Sqlite database and restore as needed.
    Works fine. Very simple code.

  3. #3
    Join Date
    Jun 2008
    Posts
    83
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help saving and restoring the states of the an Mdi Area and subwindows

    Yeah, I know.

    But I do have some luck with it. I exchaned my two subwindows in an mdi area for two dockwidgets and the save\restore State\Geometry functions fo the QMainWindow work perfectly fine!

    Thanks for the answer though!

Similar Threads

  1. display order of subwindows in mdi area
    By eric_vi in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2010, 16:05
  2. Problem with QAbstractSocket and states.
    By nomadscarecrow in forum Qt Programming
    Replies: 0
    Last Post: 17th March 2010, 15:55
  3. QTableView: saving/restoring columns' widths
    By mattc in forum Qt Programming
    Replies: 1
    Last Post: 17th December 2009, 22:05
  4. QMainWindow...button in subwindows
    By Peppy in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2009, 15:52
  5. Saving/Restoring columns order of QTreeWidget
    By mchara in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2007, 08:43

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.