I can filter the mousemove and mousepressed event, however the event can not be dispatched any more. Any other ideas?

Originally Posted by
wysota
If one really wants, one can use show() instead of exec() however this is really counter-intuitive.
I tried this codes:
{
QSize size
= _toolBar
->sizeHint
();
_toolBar->show();
}
void TwoMenu::contextMenuEvent(QContextMenuEvent *event)
{
_menu->popup(QCursor::pos());
QSize size = _toolBar->sizeHint();
_toolBar->move(QCursor::pos() - QPoint(0, size.height() + 5));
_toolBar->show();
}
To copy to clipboard, switch view to plain text mode
At this time only one item can receive event. Is that I did wrong again?
Bookmarks