Qt检测显示器的个数

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

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

int num = GetSystemMetrics(SM_CMONITORS);
原文地址:https://www.cnblogs.com/tingtaishou/p/15118510.html