void GetScreenInfo(){ QDesktopWidget* desktopWidget = QApplication::desktop(); //获取可用桌面大小 QRect deskRect = desktopWidget->availableGeometry(); int m_nActScreenX = deskRect.width(); int m_nActScreenY = deskRect.height(); //获取设备屏幕大小 QRect screenRect = desktopWidget->screenGeometry();// m_nActScreenX = screenRect.width();// m_nActScreenY = screenRect.height(); //获取系统设置的屏幕个数(屏幕拷贝方式该值为1)// int g_nScreenCount = desktopWidget->screenCount();}