Thanks a lot.
I chose second method becouse first seems to be more complicated.
It works, but menu appears somewhere in the corner of my desktop.
I think I have to convert QPoint to global position, but how to do it?
@EDIT
Ok I found it.
Function to convert QPoint to global position is QPoint QWidget::mapToGlobal ( const QPoint & pos ) const
Bookmarks