获取屏幕大小
原文地址:https://blog.csdn.net/u013541325/article/details/106966650/
获取屏幕大小
#include<QScreen>
#include<QRect>
QList<QScreen *> list_screen = QGuiApplication::screens(); //多显示器
QRect rect = list_screen.at(0)->geometry();
desktop_width = rect.width();
desktop_height = rect.height();
qDebug() << desktop_width <<desktop_height;