qt_add_qml_module() is an awesome CMake function introduced in Qt 6.2 that streamlines various aspects of organizing QML modules. However, we had a feeling that there are not many examples and demos out there that were showing more than just a very basic case.
Therefore we created a demo application that facilates this CMake blessing. Currently implemented cases:
- Main module with files in subfolders
- Three extra modules inspiring for better QML files structuring
- Adding singleton QML types to the QML module
- Adding JavaScript files to the QML module
- Adding resources to the QML module
- Adding dependencies to the QML module
- Marking specific files in the module as private
- Adding C++ registered QML type to QML module
Watch our Qt World Summit 2022 presentation on using qt_add_qml_module() function: YouTube
Project was built with Qt 6.8
Somco Software (previously Scythe Studio) is an embedded and cross-platform software development company with a strong focus on Qt and C++, delivering reliable, high-quality solutions for regulated industries, with particular expertise in medical devices. We are an ISO 9001 and ISO 13485 certified software house, specializing in GUI development, Linux-based systems, and advanced connectivity solutions. Somco Software is an official Qt Service Partner and a trusted partner of leading hardware manufacturers.
|
|
|
|
We support projects from design to delivery, offering UX/UI design, custom Yocto Linux images, and development in Qt as well as LVGL and TouchGFX. We also help with software modernization, training, and technical consulting. With a practical, developer-focused approach, we build efficient, reliable solutions that fit real project needs.
Need help with anything? We’ve got you covered. Our professional support services are here to assist you with. For more details about support options and pricing, just drop us a line at https://somcosoftware.com/en/contact.
Check out those links if you want to see Somco Software in action and follow the newest trends saying about Qt Qml development.
%20example.png)
