C++ Extensions: Reference examples
C++ Extensions: Reference examples
These examples show how QML can be extended from C++ in various ways.
The code for these examples is used throughout the Extending QML in C++ reference documentation, which highlights the main principles demonstrated in each example.
Furthermore, here are additional pages that discuss each example in detail:
- Adding Types
- Object and List Property Types
- Inheritance and Coercion
- Default Property
- Grouped Properties
- Attached Properties
- Signal Support
- Methods Support
- Property Value Source
- Binding
Note: These examples all print information to the console to demonstrate the concepts presented. Ensure that you are able to view the application output when running these examples. For example, the dbgView tool on Windows can be used to display application output.
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步