auto screens = QGuiApplication::screens(); //这里可以增加判断是否是当前屏幕,我这里只有两个屏幕,直接写死了 m_test_.setGeometry(screens.at(1)->geometry()); m_test_.show();