免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3558 | 回复: 0
打印 上一主题 下一主题

笨笨翻译之--Qt::WidgetFlags(部分 ) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-05 14:56 |只看该作者 |倒序浏览
这个枚举类型主要是为了指定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.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP