Qt QMouseEvent coordinates

1、

QMouseEvent.x () and QMouseEvent.y () are the coordinates in the window,

Equivalent to ClientX and ClientY in the Windows API.

 

2、

QMouseEvent.GlobalX () and QMouseEvent.GlobalY () are the coordinates on the screen,

Equivalent to ScreenX and ScreenY in the Windows API.

 

3、

Related functions in the Windows API:

  ScreenToClient()

  ClientToScreen ()

Guess you like

Origin www.cnblogs.com/ybqjymy/p/12719430.html