Is it possible to have a QWidget as a child to a QObject?
问题 My main application object is a QObject , that juggles a QSystemTrayIcon , a QDialog , a QWindow and a few other components. The app mostly sits in the tray, with some options dialogs etc etc. Now, I'd like to use QMetaObject::connectSlotsByName() to connect signals from these objects to slots in the main object. It's 10-15 of them, so writing them by hand doesn't seem efficient, right, professional, modern, etc etc. However, I can't use my QObject as parent to the QWidget based objects, nor