[PyQt] QMainWindow.restoreState does not restore docked widget

Thomi Richards thomir at gmail.com
Fri Apr 4 07:46:31 BST 2014


Hi,

On 4 April 2014 18:06, Baz Walter <bazwal at ftml.net> wrote:

>
> You're making two mistakes:
>
> (1) failing to add the dock-widget to a (default) dock-area
> (2) trying implement your own toggle view action
>
> Qt already has (2) covered, and does a much better job of it than your
> example code currently does (for one thing, it handles closing of the
> dock-widget by the user).



Ugh - thanks - your code works perfectly :)

Thanks again for your help!

-- 
Thomi Richards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140404/ea17e93a/attachment.html>


More information about the PyQt mailing list