QToolbar. Caption and "x" button



  • QToolbar. How to display caption with the title and "x" button for the floating toolbar?

    In Qt3 it was out-of-the-box, in Qt4 I cannot find how to do this.



  • The Qt4 QToolBar doesn't have this capability. However, you probably change the behavior by hooking into the topLevelChanged() signal.



  • [quote author="Bradley" date="1291571278"]The Qt4 QToolBar doesn't have this capability. However, you probably change the behavior by hooking into the topLevelChanged() signal.[/quote]

    Thanks for advice. I will try.



  • blex, also you can use setWindowFlags(). Prior to calling this method you might need to hide() the toolbar.


Log in to reply
 

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