-
Toolbar show menu
I'm trying to create a toolbar show menu. A menu with checkbox actions to show and hide the toolbars. I'm wondering how to accomplish this, because there doesn't seem to be a signal to warn me when a toolbars visibility changes by other means. (I need to also update the checkbox action.)
Thanks!
-
Re: Toolbar show menu
You can subclass QToolBar and make it emit such signal or you can install an event filter.
-
Re: Toolbar show menu
You shouldn't be interested if a toolbar was shown or hidden in the mean time, but what is it's state(hidden(), !hidden() ) when you show the menu.
-
Re: Toolbar show menu
-
Re: Toolbar show menu
Quote:
Originally Posted by
jpn
That's exactly the thing I was looking for. :) Thanks!
The other tips would also have worked. Thanks!
-
Re: Toolbar show menu
Quote:
Originally Posted by
jpn
I knew it had to be somewhere and just wonder why I haven't seen this before. ;)