But I don't inherit from QWidget, I inherit from QObject. How can I use this functionality since it is for QWidget only? Thanks.