abey
17th March 2010, 16:23
Hello,
In my soft, I've got a windows and a menu item and related action to control the window's visibility. The action is checkable, so I can do
connect(action, SIGNAL(toggled(bool)), window, SLOT(setVisible(bool)));
Is there an easy way to do the opposite -- ie. have the toggled state of the action updated whenever the visibility of the window changes?
TIA,
Antoine
In my soft, I've got a windows and a menu item and related action to control the window's visibility. The action is checkable, so I can do
connect(action, SIGNAL(toggled(bool)), window, SLOT(setVisible(bool)));
Is there an easy way to do the opposite -- ie. have the toggled state of the action updated whenever the visibility of the window changes?
TIA,
Antoine