• 8462阅读
  • 2回复

setAutoFillBackground没作用 [复制链接]

上一主题 下一主题
离线a461734807
 

只看楼主 倒序阅读 楼主  发表于: 2015-03-20
setAutoFillBackground有什么用,帮助手册上说设置成true,会使部件在调用paintEvent之前填充背景色
但是我设置成false,照样能填充背景色,那这函数有什么用
离线dbzhang800

只看该作者 1楼 发表于: 2015-03-20
莫非你用的Windows系统??

如果是的话,setAutoFillBackground 的Manual是如何说的
离线a461734807

只看该作者 2楼 发表于: 2015-03-20

This property holds whether the widget background is filled automatically.

If enabled, this property will cause Qt to fill the background of the widget before invoking the paint event. The color used is defined by the QPalette::Window color role from the widget's palette.

我用的是win7,即使我把setAutoFillBackgroung设置成false,还是能填充背景色
快速回复
限100 字节
 
上一个 下一个