I always try to apply SOLID principles, and I really like the Qt toolkit, but I'm always in standby mode using the single inheritance rule .
If you use multiple inheritance, moc assumes that the first inherited class is a subclass of QObject. Also, make sure that only the first inherited class is a QObject.
How do you combine single inheritance from the QObject rule and the principle of segment separation.
I want to define interfaces with signals and slots, but I am not allowed to do this.
How do you get around this shortcoming?
source share