how to make menu hide and show? means visible true and flase?
show() and hide() not working.
Printable View
how to make menu hide and show? means visible true and flase?
show() and hide() not working.
What kind of menu is that? Do you really have to show/hide it manually? Maybe the menu's geometry is wrong. How is it not working? Try using QMenu::exec(QPoint) and you don't have to even use hide().
I solved the problem using:
void UartWidget::showMenu(bool show)
{if(show)}
{createActions();}
createMenus();
else
{clear();}