could you try putting the header guard before #include <QObject>