Cargo Features

cxx-qt-build = { version = "0.6.1", default-features = false, features = ["qt_gui", "qt_qml", "link_qt_object_files"] }
default = qt_gui, qt_qml

These default features are set whenever cxx-qt-build is added without default-features = false somewhere in the dependency tree.

qt_gui default

Enables qt_gui of cxx-qt-lib-headers

qt_qml default

Enables qt_qml of cxx-qt-lib-headers

Enables link_qt_object_files of qt-build-utils


When Cargo links an executable, whether a bin crate or test executable,
and Qt 6 is linked statically, this feature must be enabled to link unarchived .o files with static symbols that Qt ships (for example to initialize Qt resources embedded within Qt libraries).

CMake also links those .o files when linking Qt's targets, so this feature must be disabled for staticlib crates. Otherwise, linking will fail with duplicate symbol errors.

When linking Qt dynamically, this makes no difference.

cxx-qt-build has 4 features without comments.