Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find include file QtCore?

Tags:

c++

qt4

qthread

I'm writing a multithreaded program in C++, and plan to use QThread. Problem is when I try to #include <QtCore>... I get an error... Cannot find include file QtCore.

What gives?

like image 352
dfetter88 Avatar asked Feb 26 '23 17:02

dfetter88


1 Answers

You probably have the include directories point to root include directory of Qt, so try:

#include <QtCore/QtCore>

... or... you don't have the include directories refering to Qt in your compiler command line.

like image 96
Cătălin Pitiș Avatar answered Apr 19 '23 04:04

Cătălin Pitiș