DavidY
20th December 2009, 07:42
I'm showing a context menu in the contextMenuEvent handler using
void Window::contextMenuEvent(QContextMenuEvent *event){
contextMenu->exec(event->globalPos());
}
When the menu is shown, the status messages associated with the QActions are shown permanently. For example, if I hover over an action with a status message, then hover over one without, then the first message will persist and will not even be cleared when the menu is closed by clicking outside it. The status messages work fine when they're shown from a menu bar. How do I change the behaviour of the context menu to this?
Thanks
void Window::contextMenuEvent(QContextMenuEvent *event){
contextMenu->exec(event->globalPos());
}
When the menu is shown, the status messages associated with the QActions are shown permanently. For example, if I hover over an action with a status message, then hover over one without, then the first message will persist and will not even be cleared when the menu is closed by clicking outside it. The status messages work fine when they're shown from a menu bar. How do I change the behaviour of the context menu to this?
Thanks