how to include QDebug to my project?
-
TEMPLATE = app
CONFIG += console c++17
CONFIG -= app_bundle
CONFIG -= qtQT -= gui
QT -= core
QT -= qapplication
QT += widgets quickSOURCES +=
main.cpp/home/supernova/useDll/main.cpp:4: error: QDebug: No such file or directory
../useDll/main.cpp:4:10: fatal error: QDebug: No such file or directory
4 | #include <QDebug>
| ^~~~~~~~ -
@JacobNovitsky said in how to include QDebug to my project?:
CONFIG -= qt
QT += qapplication
Nuke these two lines.
-
According to the docs QDebug is in QtCore and it tells you that you have to use
qmake: QT += core
-
Hi,
In addition to @Christian-Ehrlicher, QtQuick depends on QtGui which itself depends on QtCore as well as QWidget depends on QtGui and QtCore.
Also, why are you disabling Qt in the configuration if you are using it in your project ?
-
How to ammend my pro file?
TEMPLATE = app
CONFIG += console c++17
CONFIG -= app_bundle
CONFIG -= qtQT += core
QT += gui
QT += qapplication
QT += widgets quickSOURCES +=
main.cpp -
@JacobNovitsky said in how to include QDebug to my project?:
CONFIG -= qt
QT += qapplication
Nuke these two lines.
-