First, pass a parent to your menu or delete it afterwards. If not, you will produces memory leaks.
It is outside because you have to map the point. It is in local coordinates of listWidgets.
EDIT: Or simple use QCursor::pos().
First, pass a parent to your menu or delete it afterwards. If not, you will produces memory leaks.
It is outside because you have to map the point. It is in local coordinates of listWidgets.
EDIT: Or simple use QCursor::pos().
Xandareva (26th July 2010)
Bookmarks