I don't know why: no matter which tutorial I look at there's none that talks about Interfacing QML with C++ via Extension Plugins. The Qt Documentation is not quite up-to-date in that regard, the Examples are a mess and there's no Course talking about it. I have some Data Models, Data Source, and a Controller, which I have as C++20 Modules, would love to make them Extension Plugins to be used with QML (as View), but nah, I can't. Sometimes it's the technicalities themselves, and sometimes I just think it's Qt that can't work with C++20 Modules yet. What a pity! Anyways. Your series is good though. For Beginners and intermediates this is *literally* gold. Congrats. All the best!
There are a number of ways to get your data into QML - you may consider QML_FOREIGN C++ macro or maybe even the qt_generate_foreign_qml_types() CMake macro. Both will require you to add your sources to a new or existing QML Module using qt_add_qml_module() CMake macro. All the best with your challenge!
Very well done!
One of the best.
You should write a book about Qt and qml.. I'll buy it !
Great episode 🔥
I don't know why: no matter which tutorial I look at there's none that talks about Interfacing QML with C++ via Extension Plugins.
The Qt Documentation is not quite up-to-date in that regard, the Examples are a mess and there's no Course talking about it.
I have some Data Models, Data Source, and a Controller, which I have as C++20 Modules, would love to make them Extension Plugins to be used with QML (as View), but nah, I can't. Sometimes it's the technicalities themselves, and sometimes I just think it's Qt that can't work with C++20 Modules yet. What a pity!
Anyways.
Your series is good though. For Beginners and intermediates this is *literally* gold. Congrats. All the best!
There are a number of ways to get your data into QML - you may consider QML_FOREIGN C++ macro or maybe even the qt_generate_foreign_qml_types() CMake macro. Both will require you to add your sources to a new or existing QML Module using qt_add_qml_module() CMake macro. All the best with your challenge!
@@MikeTrahearn, thanks for the input, Mike. I'll reason about that🙌🏽
Greetings from Germany.
Thank you @theintjengineer.
In the future we plan to publish some more advanced content as well :D