The command is defined in the \c Core component of the \c Qt6 package, which can be loaded like so: \badcode find_package(Qt6 REQUIRED COMPONENTS Core) \endcode