-
Notifications
You must be signed in to change notification settings - Fork 0
4.03
nucularmoo edited this page Jun 25, 2018
·
3 revisions
Explanation of the contents of a topic page @ Topic reference page
Objective: Adding new types to the QML engine
- Wha are the QML basic types?
- How the QML engine knows the available types?
- How to add new types?
- What type registration functions are available?
- When to use singleton types?
- When to use untreatable types?
- When to register interfaces?
Tino: Use enum and attach property as an example of untreatable type. Also a list property example would be nice in the basic type or singleton (the basic type was already in the previous session, so perhaps in the singleton case). Also could to mention default and grouped properties, as they are used a lot in QML. Now it will be shown, how to use them.
Tino: Interfaces are not used so much Of course, we can have a trivial Parent <- (mom, dad) or whether example, but when you really need this is a good question. In most cases, the data is a value type (no inheritance) or just QObject.
- How the QML engine creates objects?