PDA

View Full Version : How to get a position of the menu bar item?



Mad Max
17th November 2006, 03:59
Actually I know y coordinate, but I can't find a way to get x coordinate.

wysota
19th November 2006, 10:14
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.

Mad Max
20th November 2006, 03:20
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.