Qt检测显示器的个数

连接其他显示器或投影仪时会检测出2个显示器。

    QList<QScreen *> list= QGuiApplication::screens();
#include "Windows.h"

int num = GetSystemMetrics(SM_CMONITORS);

 

posted @ 2021-08-09 14:27  远方是什么样子  阅读(406)  评论(0编辑  收藏  举报