PDA

View Full Version : Cannot hide QToolButton



munna
30th September 2006, 12:09
Hi,

I have two view modes for my application. In one mode I want to hide some QToolButtons available in the toolbar. Both setHidden and setVisible is not hiding the tool button.

Can someone please help ?

Thanks a lot.

wysota
30th September 2006, 12:42
Maybe you should use QAction::setVisible() on actions which are represented by the buttons instead?

munna
2nd October 2006, 05:26
But if I use QAction::setVisible(), will the action not be removed from the menu also ?

wysota
2nd October 2006, 09:41
Yes, it will.