Qt无边框窗口全屏显示 MainWindow w; #if defined(Q_OS_LINUX) w.setMoveEnable(false); //我的自定义窗口类方法,用于禁止窗口移动 w.setFixedSize(QApplication::desktop()->width(), QApplication::desktop()->height()); w.show(); #else w.showFullScreen(); #endif