Also QObject is a class of QtCore so it does not have any dependency on UI even when being used.

Cheers,
_