赞
踩
void MainWindow::on_btnMenu_Max_clicked(){if (max) {this->setGeometry(location);this->setProperty("canMove", true);} else {//到对应的显示器上全屏显示int screenIndex = QApplication::desktop()->screenNumber(this);// 获取指定索引的显示器的几何信息QRect screenGeometry = QApplication::desktop()->screenGeometry(screenIndex);// 设置窗口在指定显示器上全屏显示this->setGeometry(screenGeometry);this->setProperty("canMove", true);} max = !max;}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。