hi, I'd like to visualize in my app a menu when I click mouseRightButton (like as window).
Must I construct it myself or there is any class?thanks
hi, I'd like to visualize in my app a menu when I click mouseRightButton (like as window).
Must I construct it myself or there is any class?thanks
Regards
You must construct it yourself using QPopupMenu.
Hi,you have to reimplement QWidget::mousePressEvent(QMouseEvent*) in order to pop up your menu when the right button il clicked.
No he doesn't. He has to reimplement QWidget::contextMenuEvent(QContextMenuEvent*). Remember that it doesn't have to be the RMB which triggers the event (for example if someone is left handed and has mouse buttons inverted).Originally Posted by vratojr
vratojr (28th April 2006)
Bookmarks