Qt下获取屏幕分辨率
程序员文章站
2023-12-31 13:11:52
...
{
QApplication a(argc, argv);
QDesktopWidget *desktop = a.desktop();
int screen_number = desktop->primaryScreen();
QRect rect = desktop->screenGeometry(screen_number);
}