PDA

View Full Version : QToolbar and restoring state



roxton
16th July 2008, 16:09
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());


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?

jpn
16th July 2008, 20:35
Sounds like a bug. Can you reproduce it with a minimal example? How about reporting it to the task-tracker unless similar bug already exists...