Just wondering:
Is there any advantage of doing #include <QHttp>, etc.
instead of doing #include <QtNetwork>?
Does it load less code into memory or what?
Just wondering:
Is there any advantage of doing #include <QHttp>, etc.
instead of doing #include <QtNetwork>?
Does it load less code into memory or what?
Including a header of a single class makes the compilation faster than including all the headers of the whole module. Headers QtCore, QtGui, QtNetwork, etc. are convenience headers that include all headers belonging to the corresponding module.
J-P Nurmi
ber_44 (29th May 2007)
I have another question regarding modules?
What is the difference between (for instance):
and
Which is right? It seems both includes work fine ...
Qt 5.3 Opensource & Creator 3.1.2
Using assumes your include paths point to the .../include/QtGui/ directory, whereas requires only that your include path contain the main Qt .../include/ directory.
Bookmarks