qt双屏显示
int Index = QApplication::desktop()->screenNumber(this);//獲取當前屏幕的索引m_parent->setGeometry(QApplication::desktop()->screenGeometry(Index));//設(shè)置app所在位置m_parent->show();補充:mac平臺還有一些不可以的部分m_parent->setGeometry(QApplication::desktop()->screenGeometry(Index));改為m_parent->setGeometry(QApplication::desktop()->availableGeometry(Index));
總結(jié)
- 上一篇: python学习感想
- 下一篇: Epicor系统二次开发