MainWindow::MainWindow(QWidget *parent) 
    : QMainWindow(parent, Qt::SubWindow), ui(
new Ui::MainWindow)
{
ui
->setupUi(this);
}

在构造函数的flag参数处,填上Qt::SubWindow

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-09-27
  • 2021-10-18
  • 2022-12-23
  • 2021-04-21
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-05-18
相关资源
相似解决方案