You can access the parent of a QObject very simple via QObject:arent(). It returns a QObject.

Regards