Bo Peng wrote: >> Is this a Qt problem or could Qt reproduce the 'exact' positions? > > The problem is that move and resize does not work for QToolbar so I > have no way to move a toolbar to an exact location. Maybe you know a > way or can ask qt-mailinglist?
OK, you try to restore the toolbars without the usage of pure Qt functions. Then it is clear that it could be problematic. The only idea I have is to have a look at the Qt code of QMainWindow::saveState, or to request the support of move/resize for QToolbars. > > Qt recommends saveState and restoreState, which can not be used due to > its compatibility with our backend/frontend structure. Maybe it is possible to use this functions for the toolbars only? Anyway, your current solution is good enough for 1.5.0. > > Cheers, > Bo > Peter