• 8225阅读
  • 3回复

请问Qt 4.5 中 QGroupBox 为什么没有边框 [复制链接]

上一主题 下一主题
离线20044454
 
只看楼主 倒序阅读 楼主  发表于: 2009-07-10
请问Qt 4.5 中 QGroupBox 为什么没有边框? 怎么设置可以出现?没边框难看死了
让我做一个Qt的大牛!!!!
离线yj_yulin

只看该作者 1楼 发表于: 2009-07-10
flat : bool

This property holds whether the group box is painted flat or has a frame.

A group box usually consists of a surrounding frame with a title at the top. If this property is enabled, only the top part of the frame is drawn in most styles; otherwise the whole frame is drawn.

By default, this property is disabled; i.e. group boxes are not flat unless explicitly specified.

Note: In some styles, flat and non-flat group boxes have similar representations and may not be as distinguishable as they are in other styles.

Access functions:

bool isFlat () const
void setFlat ( bool flat )
离线20044454
只看该作者 2楼 发表于: 2009-07-10
我在Qt 4.3 里面就有边框 到了4.5就没了  没选flat
让我做一个Qt的大牛!!!!
离线wczt_123
只看该作者 3楼 发表于: 2010-07-22
同问
快速回复
限100 字节
 
上一个 下一个