schall_l
18th June 2009, 16:46
Hi,
I do not find how to add a separator in a contextuel menu.
void
CommunicationView::createContextMenu() {
addAction(highlightLogEntryAct);
addAction(deleteHighlightLogEntryAct);
// <- add separator here
addAction(deleteLogEntryAct);
setContextMenuPolicy(Qt::ActionsContextMenu);
}
If someone has an idea...
I do not find how to add a separator in a contextuel menu.
void
CommunicationView::createContextMenu() {
addAction(highlightLogEntryAct);
addAction(deleteHighlightLogEntryAct);
// <- add separator here
addAction(deleteLogEntryAct);
setContextMenuPolicy(Qt::ActionsContextMenu);
}
If someone has an idea...