//关闭按钮失效
//this->setWindowFlags(Qt::WindowMinMaxButtonsHint);
//去掉最大化、最小化按钮,保留关闭按钮
this->setWindowFlags(Qt::WindowCloseButtonHint);
//关闭按钮失效
//this->setWindowFlags(Qt::WindowMinMaxButtonsHint);
//去掉最大化、最小化按钮,保留关闭按钮
this->setWindowFlags(Qt::WindowCloseButtonHint);
java获取当月最大日
在用JFrame中有时候需要捕获最大化、最小化等操作,或者期望程序一运行就最大化或最小化。 捕获JFrame的最小化、最大化事件,可以通过给JFrame添加自己的actionListener来实现,如:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M