1)获得屏幕坐标
You can use the QDesktopWidget
QRect rec = QApplication::desktop()->screenGeometry();
height = rec.height();
width = rec.width();
本文介绍了一种使用 QDesktopWidget 的方法来获取当前屏幕的几何尺寸,包括屏幕的高度和宽度。
1)获得屏幕坐标
You can use the QDesktopWidget
QRect rec = QApplication::desktop()->screenGeometry();
height = rec.height();
width = rec.width();

被折叠的 条评论
为什么被折叠?
