[PyQt] restoreState not working for QDockWidgets

Hans-Peter Jansen hpj at urpla.net
Thu Nov 12 00:04:42 GMT 2009


On Monday 09 November 2009, 05:29:29 Brian Zambrano wrote:
> In my mainwindow, I'm calling saveState and restoreState.  This is
> working like a charm for the main window's geometry.  However, the three
> dock widgets contained in the main window are reset in between sessions. 
> I've made sure to name all of the dock widgets uniquely, but no luck.
>
> QWindow.saveState seems pretty clear: "Saves the current state of this
> mainwindow's toolbars and dockwidgets."
>
> Is there some trick I'm missing to get this working?
>
> I'm using PyQt 4.5.4 and Qt 4.5 on OS X 10.5.8.

The usual "please provide a minimum self containing example" applies.

Pete


More information about the PyQt mailing list