Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
6.x
-
fa1ba8ed8e6abe66076a858f3d390c28f08441f3 (qt/qtdeclarative/dev)
Description
Currently, the declarative type registration macros live in qqml.h. If a library does not want to depend on QtQml but still offer QML integration, it thus has to currently do the following:
1. Use normal QObjects/QGadgets and enable metatypes.json generation
2. Create a declarative helper library, which creates wrapper structs and uses QML_FOREIGN to register the types from the main library
If we move the macros out of QtQml, we could already use them in step 1. Then, instead of manually creating the structs in step 2, we could just automate this with qmltyperegistrar.
Attachments
Issue Links
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-92258 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
341519,3 | Move type registration into their own header | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
350930,17 | Support QML type registration split: build system + tools integration | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
383175,8 | Split QML registration macros into their own module | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
383339,5 | Add documentation for qt6_generate_foreign_qml_types | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |