Qt 6.4.1 on macOS where are the QtWidgets/* header files?
-
Hello there,
I just installed Qt 6.4.1 on my Mac, and I am unable to find the right header files.
I found the folder:
Qt/6.4.1/macos/lib/QtWidgets.framework/Headers
It contains the usual Qt headers, but unfortunately the files it contains include "QtWidgets/someheader.h", e.g.:Qt/6.4.1/macos/lib/QtWidgets.framework/Headers/qapplication.h:7:10: fatal error: 'QtWidgets/qtwidgetsglobal.h' file not found
Unlike on Linux, the QtWidgets folder does not exist and is nowhere to be found.
Thanks!
-
#include <QtWidgets/qtwidgetsglobal.h>
is a "framework-style" include. For these includes <FW/file.h> the compiler also tries to find it in "<FrameworkPath>/QtWidgets.framework/Headers/file.h" were <FrameworkPath> is iterated through all paths given to the compiler with "-F <path>".
So, given the right path with "-F /Users/<user>/Qt/6.4.1/macos/lib", the compiler should resolve "#include <QtWidgets/qtwidgetsglobal.h>" to the file "/Users/<user>/Qt/6.4.1/macos/lib/QtWidgets.framework/Headers/qtwidgetsglobal.h".