qt 之 QDesktopWidget

来源:互联网 发布:ubuntu 鼠标不起作用 编辑:程序博客网 时间:2024/05/16 07:29

1)获得屏幕坐标

You can use the QDesktopWidget

 QRect rec = QApplication::desktop()->screenGeometry(); height = rec.height(); width = rec.width();
0 0