My main application object is QObject , which juggles QSystemTrayIcon , a QDialog , a QWindow and several other components. The application is mainly located in the tray, with some parameter dialogs, etc. Etc.
Now I would like to use QMetaObject::connectSlotsByName() to connect the signals from these objects to the slots in the main object. These are 10-15 of them, so writing them manually does not seem effective, correct, professional, modern, etc.
However, I cannot use my QObject as the parent object for QWidget objects, nor can I change the object to inherit from QWidget , since they will not be displayed because the main object is not visible.
Ideas?
Macke source share