获取鼠标位置

a QMouseEvent object named event

event->globalPos()

原文地址:https://www.cnblogs.com/azbane/p/8670259.html