Important: Please read the Qt Code of Conduct -

QtNetwork/ what is the difference

  • Hello,

    what is the difference between including

    Both link to a one line file with #include "qftp.h"
    which links to

    "Here": it was explained to replace QtNetwork/QFtp with QFtp which helped for me, too. But what is the difference?

    Thank you

  • Moderators

    The official story is that there is no difference. Writing just "QClass" is shorter and more portable (on very rare occasions some classes might change the module they belong to).

    Less officially, you can use QtModule/QClass to avoid including the whole module in .pro file. Does not always work, but might. And is not really recommended.

Log in to reply