#include <QApplication> but QApplication: No such file or directory
-
I use vscode to run the main.cpp, and I set
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"E:\QT\6.4.3\msvc2019_64\bin",
"E:\QT\6.4.3\mingw_64\bin",
"E:\QT\6.4.3\msvc2019_64\include",
"E:\QT\6.4.3\mingw_64\include",
"E:\QT\6.4.3\mingw_64\include\QtNetwork",
"E:\QT\6.4.3\mingw_64\include\QtWidgets",
"E:\QT\6.4.3\mingw_64\include\QtCore",
"E:\QT\6.4.3\mingw_64\include\QtGui",
"E:\QT\6.4.3\msvc2019_64\include\QtNetwork",
"E:\QT\6.4.3\msvc2019_64\include\QtWidgets",
"E:\QT\6.4.3\msvc2019_64\include\QtCore",
"E:\QT\6.4.3\msvc2019_64\include\QtGui"
],
but error still exists. My QT is 6.4.3. What can I do to solve it? -
Hi and welcome to devnet,
You should rather use CMake to manage your C++ project and the corresponding VSCode integration.