How to save / restore dynamic toolbar state



  • Hi,

    I develop an application with modules. These modules can be loaded or released
    by user. When a module is loaded a toolbar is created (by the module) and added in main window.
    User can arrange the tool bars positions.
    I would like to save the position of these toolbars.
    QMainWindow::restoreState do not what I want
    (tool bar order is not correct)
    before save state the toolbar profile is on bottom
    after restore state the toolbar profile is on top and an other toolbar is on bottom.
    Followin Qt doc I can retrieve visibility / area of toolbar but Idon't know how to retrieve it's position.

    Do you have any idea ?
    thanks.

    sorry for my bad english


  • Lifetime Qt Champion

    Hi,

    Did you set the object name of your toolbars ?



  • I found the solution just after written my question.
    I did not set object name, that's why it did not works.
    thanks for your answer, You're faster than me.


  • Lifetime Qt Champion

    You're welcome !

    Since you have it working, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.