I am wondering:
-------------------------------------------------------
In a ".h" header file I can declare something like:
class QTextBrowser;
and in the respective ".cpp" class I will add this:
#include <QTextBrowser>
----------------------------------------------------------
I can also declare the "#include" in the header file (I know it).
Question:
Why is it better to "#include" a class in a .cpp instead of including it in the .h ?
Why it is not better ?
Bookmarks