Hi

I have a main window with a dock widget. The dock widget is initially hidden. It is displayed when the user selects the action from a menu (same as dock widgets example), this works fine.

I also have an icon on a toolbar to control the visibility of the same dock window. I want to be able set enable/disable the icon depending on the visibility of the dock window. How can I achieve this (ideally I would like the menu item and icon controlling the visibility of the dock window to be synchronized)

Thanks