tags:

views:

90

answers:

2

I need the global screen position of a Qt widget for which I need the application's global position. How can this be found?

Thanks.

A: 

You want the pos property of your top-level window:

This property holds the position of the widget within its parent widget.

If the widget is a window, the position is that of the widget on the desktop, including its frame.

Be sure to also check this part of the Qt docs for details.

Alex Martelli
+2  A: 

widget->mapToGlobal( widget->pos() )

Frank