I'm using the QMainWindow and two toolbars. They are docked at the top. When windows closes, I save it's state. And I restore it on start:
restoreState
(settings
->value
("state",
QByteArray()).
toByteArray());
restoreState (settings->value("state", QByteArray()).toByteArray());
To copy to clipboard, switch view to plain text mode
This allows me to save/restore toolbars visibility and positions (in a docked state).
With Qt 4.3 all was fine. But with Qt 4.4 I have a strange behaviour of such restoring. By restoring. the second toolbars always shifts by some pixels right. After several runs, the distance from one toolbar and another is significant. What can I do to prevent this?
Bookmarks