You can't rely on USING_QTPIM being set by other applications. Check Qt version instead?