Results 1 to 11 of 11

Thread: QMainWindow : restorestate problems

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question QMainWindow : restorestate problems

    Hello,

    i save the state of my main window and when i restore it's state it is not working well
    my window contains some docked widgets
    when i close a dockedWidget it creates a QPlaceHolderItem
    and this QPlaceHolderItem is written in that byteArray that QmainWindow::savestate returns
    and i think this is why if i have 2 docked widgets of the same type and one is closed
    then i click save and then
    when i restore the state none of them are showed , because QPlaceHolderItem messes things up .[i think]


    Thanks.
    Last edited by fmariusd; 19th October 2009 at 15:45.

Similar Threads

  1. QMainWindow with QMainWindow
    By baray98 in forum Qt Programming
    Replies: 3
    Last Post: 12th April 2011, 07:07
  2. Replies: 1
    Last Post: 21st November 2008, 07:00
  3. QMainWindow setCentralWidget from ui widget, Qt4
    By alan in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2008, 13:00
  4. QMainWindow child of a QDialog
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 16th January 2008, 07:16
  5. Replies: 18
    Last Post: 22nd February 2006, 20:51

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.