andre
2nd November 2009, 17:52
Hello,
in a design for a new application I tend to derive all classes from QObject in order to be able to use the Qt framework to the max. I need to mention that I have developed in Java over the past 10 years where everything derives from 'Object'.
Would somebody consider this a bad practice? I see a lot of benefits: Parent-child, cloning, signals/slots, property support, uniformity, clarity... more?
What are the disadvantages? Are QObjects too heavy-weight?
Any thoughts?
Thanks,
Andre
in a design for a new application I tend to derive all classes from QObject in order to be able to use the Qt framework to the max. I need to mention that I have developed in Java over the past 10 years where everything derives from 'Object'.
Would somebody consider this a bad practice? I see a lot of benefits: Parent-child, cloning, signals/slots, property support, uniformity, clarity... more?
What are the disadvantages? Are QObjects too heavy-weight?
Any thoughts?
Thanks,
Andre