Skip to content

QML Module

The QML module contains coroutine-friendly wrappers for QtQml classes.

CMake Usage

find_package(QCoro6 COMPONENTS Qml)
...
target_link_libraries(my-target QCoro::Qml)

QMake Usage

QT += QCoroQml

Type registration

To use types defined in QCoroQml, you need to call the QCoro::Qml::registerTypes function before loading the QML.

int main() {
    ...
    QCoro::Qml::registerTypes();
    ...
}