qt双屏显示
int Index = QApplication::desktop()->screenNumber(this);//獲取當(dāng)前屏幕的索引m_parent->setGeometry(QApplication::desktop()->screenGeometry(Index));//設(shè)置app所在位置m_parent->show();補(bǔ)充:mac平臺(tái)還有一些不可以的部分m_parent->setGeometry(QApplication::desktop()->screenGeometry(Index));改為m_parent->setGeometry(QApplication::desktop()->availableGeometry(Index));
總結(jié)
- 上一篇: python学习感想
- 下一篇: 让我们努力的学习ruby吧