You can derive your class from QObject and from other classes that don’t derive from it, but QObject needs to be the first base class in the base classes list.
So this is wrong:
class QContact: public Contact, public QObject {};
You need to write it as
class QContact: public QObject, public Contact {};