The Qt classes should be guarded by:
``QT_BEGIN_NAMESPACE``
``QT_END_NAMESPACE``

And ClientModel should be in front of that block then.