I once use
but now I need a submenu in my context menu,what should I change?Qt Code:
QTableWidget->setContextMenuPolicy(Qt::ActionsContextMenu);To copy to clipboard, switch view to plain text mode
best wishes,everyone!
I once use
but now I need a submenu in my context menu,what should I change?Qt Code:
QTableWidget->setContextMenuPolicy(Qt::ActionsContextMenu);To copy to clipboard, switch view to plain text mode
best wishes,everyone!
Have a look at the QMenu doc.
Specifically QMenu::addMenu().
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks