Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

Visual Studio Code on macOS + Qt + Intellisense

$
0
0

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.


Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>