Visual Studio Code gets the following error:
cannot open source file "QtWidgets/qtwidgetsglobal.h" (dependency of "QApplication")C/C++(1696)
I have a CMake project which compiled and built successfully, but it seems that Intellisense doesn't work.
I have this directory in a path which contains qtwidgetsglobal.h
:
/usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework/Headers
And there is another thing:
Directory /usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework
contains directory Headers
and strange executable QtWidgets
I was assumed to include -I/usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework
because QtCreator has both
/usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework
and
/usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework/Headers
but nothing worked.
Actually Visual Studio Code seems to ignore if both directories
/usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework
and
/usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework/Headers
specified.
Any suggestions how to enable Intellisense to work with Visual Studio Code.