This isn't the first time, but during the exercise of getting a small
runnable example I figure out the problem.
The issue was that I was calling mainwindow.restoreState(), after which I
was setting up all of my dock widgets. By moving the restore state call
*after* the dock widgets initializatio
Hi guys,
I hear ya...it's something I've found a bit hard with GUI programming. The
code gets quite large and involved, so boiling it down to a self contained
example demonstrating the issue takes some work. But, I agree it's worth
doing and the issue very well may be solved during that exercise
On Thursday 12 November 2009, 09:08:09 Brian Zambrano wrote:
> The relevant pieces are basically this...have the main window save state
> when it closes. On startup, the main window passes itself to a QSettings
> wrapper where the state should be restored. The resize works just fine,
> the dock w
This is not a self contained example, ie. one that we can run. How do you
know that these are the "relevant pieces"? By presenting us with a fragment
of code you are making the assumption that it must demonstrate the problem
- even though you have already said you don't know what the problem is.
O
The relevant pieces are basically this...have the main window save state
when it closes. On startup, the main window passes itself to a QSettings
wrapper where the state should be restored. The resize works just fine, the
dock widgets states do not work:
class MyMainWindow(QMainWindow):
def
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
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.saveSt