Sure, you can do that. QWidget itself derives from QObject.