PDA

View Full Version : how to add a submenu to a context menu of a QTableWidget



berlinud
18th October 2010, 09:51
I once use

QTableWidget->setContextMenuPolicy(Qt::ActionsContextMenu);
but now I need a submenu in my context menu,what should I change?
best wishes,everyone!

high_flyer
18th October 2010, 15:38
Have a look at the QMenu doc.
Specifically QMenu::addMenu().