I am writing a multi-threaded program in C ++ and plan to use it QThread. The problem is when I try #include <QtCore>... I get an error message ...Cannot find include file QtCore.
QThread
#include <QtCore>
Cannot find include file QtCore.
What gives?
You probably have include directories pointing to the root include directory of Qt, so try:
#include <QtCore/QtCore>
... or ... you do not have include directories related to Qt on the command line of your compiler.
It looks like your .pro file is configured incorrectly.
Your source of errors is a compiler that feeds invalid include directories - this is why QtCore cannot be found.
, qmake ( Makefile), CMake .. .. , .
.pro Makefile? , ?
SO , , Visual Studio #include Qt. , IDE , #include " include XXX".
The question associated with the above points to the nokia page about intellisense and QT , which indicates that Visual Studio should be run from "Qt x.xx for the desktop (MSVC 20xx)", which is part of the QT binary distribution. After starting Visual Studio from the QT command line, my problem disappeared.
Source: https://habr.com/ru/post/1777307/More articles:')' Expected (java) - javaWhy is viewDidAppear in a UITabBarController executed before a view? - iphoneiPod: What does NS_NONATOMIC_IPHONEONLY mean? Can I use this feature on iPod Touch? - iphoneHow to reinstall the Delphi 6 application? - delphiNo alternate DNS names were found for ex.ample.com - javaFlash Sync for Zlib Deflate - c #Additional rewrite rule for AST in ANTLR - antlrNew version instead of internationalization? - iosmongodb php gets unique field values - phpРеализация С++ - c++All Articles