elcuco
23rd November 2009, 19:03
Simple problem:
I have this menu on a toolbar (a QToolButton which has a QMenu attached). Then another checkable action which shows/hides that menu. But it does not. This code does not work:
toolbarMenuButton->setVisible(!hideAction->isChecked());
Full code attached here. Put it in a new dir, and to compile type:
qmake -project
qmake
make
Can anyone give me a hint, what am I missing?
I have this menu on a toolbar (a QToolButton which has a QMenu attached). Then another checkable action which shows/hides that menu. But it does not. This code does not work:
toolbarMenuButton->setVisible(!hideAction->isChecked());
Full code attached here. Put it in a new dir, and to compile type:
qmake -project
qmake
make
Can anyone give me a hint, what am I missing?