仅使用setWindowFlags不起作用
setWindowFlags(windowFlags() & ~Qt::WindowMinMaxButtonsHint);
在尝试规定窗口大小后,就自动没有最大最小化按钮了。
setFixedSize(this->width(), this->height());
仅使用setWindowFlags不起作用
setWindowFlags(windowFlags() & ~Qt::WindowMinMaxButtonsHint);
在尝试规定窗口大小后,就自动没有最大最小化按钮了。
setFixedSize(this->width(), this->height());