Results 1 to 15 of 15

Thread: Floating QDockWidget not re-docked by QMainWindow::restoreState

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2010
    Location
    Hyderabad, India
    Posts
    15
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Floating QDockWidget not re-docked by QMainWindow::restoreState

    For restoreState and saveState to work properly, we need to ensure that the objectname of each saved object is unique.

    Ensure that the objectname of both the dock widgets are different.

    eg. dock->setObjectName("Customers");

    and the second one can be

    dock->setObjectName("Paragraphs");

    Hope it helps.

  2. The following 2 users say thank you to mrvk for this useful post:

    carel (2nd March 2011), stefanadelbert (2nd March 2010)

Similar Threads

  1. QDockWidget saveState and restoreState
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 28th January 2016, 09:56
  2. how to hide the title bar when a QDockWidget is docked?
    By oscar721 in forum Qt Programming
    Replies: 5
    Last Post: 23rd January 2014, 20:16
  3. QMainWindow ignores dynamically created, floating QDockWidget
    By stefanadelbert in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2010, 01:06
  4. QMainWindow : restorestate problems
    By fmariusd in forum Qt Programming
    Replies: 10
    Last Post: 30th October 2009, 08:05
  5. QMainWindow::restoreState
    By EnErGy[CSDX] in forum Qt Programming
    Replies: 3
    Last Post: 15th September 2008, 00:49

Tags for this Thread

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.