QT无标题窗口在任务栏显示关闭(增加系统菜单)

时间:2016-06-10 22:55:30   收藏:0   阅读:592

在对话框中使用了如下代码:

setWindowFlags(Qt::FramelessWindowHint);

在任务栏上右键点击程序,不会弹出菜单,解决办法,使用下面代码:

setWindowFlags(Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);

http://blog.csdn.net/itjobtxq/article/details/8803093

原文:http://www.cnblogs.com/findumars/p/5574382.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!