Skip to content

Qt6.11 / Cmake #449

Draft
FelixvdDonk wants to merge 4 commits intovedderb:masterfrom
FelixvdDonk:qt6_Cmake_port
Draft

Qt6.11 / Cmake #449
FelixvdDonk wants to merge 4 commits intovedderb:masterfrom
FelixvdDonk:qt6_Cmake_port

Conversation

@FelixvdDonk
Copy link

@FelixvdDonk FelixvdDonk commented Mar 7, 2026

Proof of concept migration to Qt6.11 and Cmake (preferred build system for Qt6)

I'm not sure what the current sentiment is around moving to Qt6 given licensing structure but I thought I'd make this PR to show the feasibility. And I would also like to contribute in the future but most of the newer interesting stuff requires Qt6. For instance we can do away with all the fragile nested QEventloops we currently have and replace them with QtTaskTree

Please let me know if there are major reasons not to move to Qt6. If there are none I will spend more time on this to make this proper.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@FelixvdDonk
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Converts `SIGNAL`/`SLOT` macro usage to type-safe pointer-to-member syntax, enhancing compile-time error detection and code robustness.

Transitions QML type registration to use the `QML_ELEMENT` macro and `qt_add_qml_module` in CMake. This streamlines QML imports by providing all types under a single module (`Vedder.vesc`) and removes numerous manual `qmlRegisterType` calls.

Removes explicit `qRegisterMetaType` calls, leveraging automatic metatype registration available in modern Qt. Updates `foreach` loops to range-based for loops for improved code readability.

Ensures the correct `BleUart` or `BleUartDummy` implementation is included based on the build's Bluetooth support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant