The command is defined in the \c Core component of the \c Qt6 package. Load the package with: \code find_package(Qt6 COMPONENTS Core REQUIRED) \endcode