I am developing a Qt application and I am wondering if there are any benefits to create QObject classes other than adding signals and slots to them.
Besides assigning signal/slot features, QObject also add a few number of reflection capabilities on C++ classes.
If you want to add a subset of a QObject you can use Q_GADGET, which add some of the reflection features and things like Q_ENUM, Q_PROPERTY, etc.
The docs has more information about it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With