Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] Difference between #include <Qt/qgroupbox.h> and #include <QGroupBox>
Mathai last edited by
What is the difference between #include <Qt/qgroupbox.h> and #include <QGroupBox>. Are these header files different? They seem to do the same thing.
quendimax last edited by
You can see into the QT_PATH/inclue folder. There are the Qt/qgroupbox.h header and the QtGui/QGroupBox header inside.
The first file contents:
The second file contents:
So both variants are the same.
goetz last edited by
They're both quite the same. #include <QGroupBox> resp. #include <QtGui/QGroupBox> is the recommended variant and more "C++ style".