Sunday, December 28, 2014

qt fatal error qdialog no such file or directory #include

In the process of compiling your cpp file in linux under QT 5 or more you may receive such  a weird fatal error message. If you are wondering where and how to start solving it here is the solution for you. Just go to your projectFile.pro and add the following on the top (before headers):
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Special credit goes to AB Bolim stackoverflow

Hope you enjoy it

No comments:

Post a Comment