QPoint qqq =event->globalPos();
QPoint qqq1 =event->globalPos() - pos();
QString globalpos = QString(“桌面绝对坐标x:%1,y:%2”).arg(qqq.x()).arg(qqq.y());
QString globalpos1 = QString(“当前应用程序绝对坐标x:%1,y:%2”).arg(qqq1.x()).arg(qqq1.y());
m_label->setText(globalpos + globalpos1);
QPoint s = event->pos();
QPoint s1 =pos();
QString aa = QString(“当前应用程序相对坐标左上角x =%1,y=%2”).arg(s.x()).arg(s.y());
QString aa1 = QString(“当前应用程序左上角相对桌面坐标x =%1,y=%2”).arg(s1.x()).arg(s1.y());