- 论坛徽章:
- 0
|
这个枚举类型主要是为了指定widget(窗体/组件)的不同窗口系统特性。它们相当罕见 但是在一些案例中却是必须的。它们中的一些标志依赖于底层窗口管理的支持()This enum type is used to specify various window-system properties for the widget. They are fairly unusual but necessary in a few cases. Some of these flags depend on whether the underlying window manager supports them. (See the toplevel example for an explanation and example of their use.)
The main types are
Qt::WStaticContents - 指出窗体的内容是左上对齐的(西北方?参考上北下南 左西右东的思考习惯?不太确定 哈)而且是静态的。当改变大小时,这样的窗体只接受它的新的可见部分的重画事件。ndicates that the widget contents are north-west aligned and static. On resize, such a widget will receive paint events only for the newly visible part of itself.
Qt::WNoAutoErase - 指出该窗体将画出它所有的像素。因此,更新,改变大小,滚动和焦点改变都不会擦除该窗体。这就允许快速重画从而避免了闪烁。indicates that the widget paints all its pixels. Updating, resizing, scrolling and focus changes should therefore not erase the widget. This allows smart-repainting to avoid flicker. |
|