Cannot open include file: 'QtNetwork': No such file or directory
Solved
General and Desktop
-
I do not know why my VS can not open some Qt modules, for example:
#include <QtGui> // no error
#include <Qt3DCore> error
????? -
@Aminmlp Well, since you're using Visual Studio and not QtCreator you have to check how it is done in Visua Studio. I don't use Visual Studio but it looks like it is in "Qt Modules" tab - see https://doc.qt.io/qtvstools/qtvstools-managing-projects.html
Background: Qt is modular, that's why you need explicitly activate modules you want to use. This way you can reduce dependencies of your app.
-
problem solved. this link https://doc.qt.io/qtvstools/qtvstools-managing-projects.html solved my problem. thanks