http://blog.youkuaiyun.com/laowu_/article/details/6847434
setWindowFlags(windowFlags()& ~Qt::WindowMaximizeButtonHint);
setFixedSize(this->width(), this->height());
本文介绍如何通过Qt编程接口禁用窗口的最大化按钮,并设置窗口大小为固定不变。通过对窗口标志进行修改来实现这一功能。
http://blog.youkuaiyun.com/laowu_/article/details/6847434
setWindowFlags(windowFlags()& ~Qt::WindowMaximizeButtonHint);
setFixedSize(this->width(), this->height());
3390
4596

被折叠的 条评论
为什么被折叠?