qtConfig in qt 6,how it works?
Solved
General and Desktop
-
@bigbigbig
qtHaveModule()
andqtConfig()
are defined in.../mkspecs/features/qt_functions.prf
.The first looks for the named module in only the QT variable (as documented).
The second is undocumented AFAICT, but looks for its argument in the list of Qt modules that are available in the QT variable and default private internal lists, considering dependencies and features enabled at Qt build time. This is likely only ever intended for internal use.
Your
requires()
condition is not naming a Qt module so will likely never be true. -