how to make menu hide and show? means visible true and flase?
show() and hide() not working.
how to make menu hide and show? means visible true and flase?
show() and hide() not working.
Rajesh Kumar Singh
Bangalore, India.
Qt Search
Must Watch:
See how we can connect digital world objects to our day to day life….
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().
J-P Nurmi
I solved the problem using:
void UartWidget::showMenu(bool show)
{if(show)}
{createActions();}
createMenus();
else
{clear();}
Rajesh Kumar Singh
Bangalore, India.
Qt Search
Must Watch:
See how we can connect digital world objects to our day to day life….
Bookmarks