
Originally Posted by
Chicken Blood Machine
The header qtable.h need not be included unless you call methods of QTable somewhere else in the file.
There is one more situation when the header file is needed -- to check if the class inherits some other class, for example:
connect(someclass, SIGNAL(x()), this, SLOT(y)));
connect(someclass, SIGNAL(x()), this, SLOT(y)));
To copy to clipboard, switch view to plain text mode
The header file for "someclass" is needed for the compiler to see if it inherits QObject.
Bookmarks