Getting Includes Right

Allen Winter winter at
Sat Apr 30 17:29:35 BST 2016

On Saturday, April 30, 2016 11:16:09 AM Allen Winter wrote:
> Howdy,
> Frederik sent me bug for Krazy about
> how to include Qt headers in KDE code, as described at
> I believe with K5 we decided that #include <QFoo> is correct and we should
> not be using #include <QtModule/QFoo> any longer.
> If so, I can edit the wiki accordingly.  I just wanted to double-check the policy.

To reiterate the policy as Krazy tries to enforce:

KF5 - always use #include <QClass>
KDE4 - for your installed library headers use #include <QtModule/QClass> else use #include <QClass>

since the wiki I assume is meant for KF5 and we no longer care about KDE4, I will change
the page to say "always use #include <QClass>...."

More information about the kde-core-devel mailing list