Qt Object Model
来源:互联网 发布:恩梯梯数据晋恒怎么样 编辑:程序博客网 时间:2024/06/05 01:53
The standard C++ object model provides very efficient runtime support for the object paradigm. But its static nature is inflexibile in certain problem domains. Graphical user interface programming is a domain that requires both runtime efficiency and a high level of flexibility. Qt provides this, by combining the speed of C++ with the flexibility of the Qt Object Model.
Qt adds these features to C++:
- a very powerful mechanism for seamless object communication called signals and slots
- queryable and designable object properties
- powerful events and event filters
- contextual string translation for internationalization
- sophisticated interval driven timers that make it possible to elegantly integrate many tasks in an event-driven GUI
- hierarchical and queryable object trees that organize object ownership in a natural way
- guarded pointers (QPointer) that are automatically set to 0 when the referenced object is destroyed, unlike normal C++ pointers which become dangling pointers when their objects are destroyed
- a dynamic cast that works across library boundaries.
Many of these Qt features are implemented with standard C++ techniques, based on inheritance from QObject. Others, like the object communication mechanism and the dynamic property system, require the Meta-Object System provided by Qt's own Meta-Object Compiler (moc).
The meta-object system is a C++ extension that makes the language better suited to true component GUI programming. Although templates can be used to extend C++, the meta-object system provides benefits using standard C++ that cannot be achieved with templates
- Qt Object Model
- Qt--Meta-Object Model
- Model object
- QObject是QT所有类的基类,QObject是Qt Object Model的核心
- Object Model 之 DSL
- Inside COM Object Model
- Component Object Model (COM)
- C++ Object Model
- DOM (Document Object Model)
- Component object model
- inside C++ Object Model
- Component Object Model (COM)
- Document Object Model
- Javascript Object Model 图解
- C++ object model 笔记
- c++ object model 摘抄
- Browers Object Model
- Document Object Model Events
- 穷人为什么穷,富人为什么富
- hdu 3896 Greatest TC
- 拒绝图片延迟加载,爽爽的看美图
- [hdoj1096]通过比对代码总结的小技巧
- Oracle中Date的各种格式转换
- Qt Object Model
- MySQL sql query
- U-boot源代码全分析系列(基于PowerPC)-3
- crysis2 - dx9一帧渲染流程笔记
- win7 x64旗舰版搭建汇编环境方法
- OGRE - RenderProcess (渲染流程)
- Silverlight实用窍门系列:40.Silverlight中捕捉视频,截图保存到本地【附带实例源码】
- sudo命令
- 关于《Android应用开发揭秘》中早期版本中联系人例子错误的解决办法