Actually I know y coordinate, but I can't find a way to get x coordinate.
Actually I know y coordinate, but I can't find a way to get x coordinate.
You should be able to retrieve the position by accessing the QMenu object from the bar and fetching its x() and y() coordinates and then mapping them to the coordinate space you require.
The task has been to show a widget like QMenu (I mean its positing ). I couldn't find a solution to get x coordinate directly. I found another solution ( it is inheritance from QMenu if it will be interesting for somebody) . None the less many thanks for the answer, wysota.
Last edited by Mad Max; 20th November 2006 at 04:15. Reason: spelling error
Bookmarks