Hello everybody,
I am learning Qt programming and confused by the include of QtGui and QtCore with Qt 5.0 SDK.
In the book C++Qt programming with Qt 4 2nd Edition, it said that if we want to use components such as QCheckBox, QLineEdit, QPushButton or QLabel, we only need to include QtGui at the beginning instead of include individual headers <QCheckBox>, <QLineEdit> etc…
I tried but it throwed a bunch of errors “no appropriate default constructor available”. The problem is only solved by include the individual headers.
Could any body help me figure out the problem? Me or Qt5.0 has changed that we need to include individually.
Thanks very much.
↧