- 論壇徽章:
- 0
|
這個(gè)枚舉類型主要是為了指定widget(窗體/組件)的不同窗口系統(tǒng)特性。它們相當(dāng)罕見 但是在一些案例中卻是必須的。它們中的一些標(biāo)志依賴于底層窗口管理的支持()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 - 指出窗體的內(nèi)容是左上對齊的(西北方?參考上北下南 左西右東的思考習(xí)慣?不太確定 哈)而且是靜態(tài)的。當(dāng)改變大小時(shí),這樣的窗體只接受它的新的可見部分的重畫事件。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 - 指出該窗體將畫出它所有的像素。因此,更新,改變大小,滾動(dòng)和焦點(diǎn)改變都不會(huì)擦除該窗體。這就允許快速重畫從而避免了閃爍。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. |
|