PDA

View Full Version : The Multiple Inheritance Approach



thefatladysingsopera
25th May 2011, 11:14
While reading Using a Designer UI File in Your Application on Qt Assistant,i found this statement:


Subclassing using multiple inheritance gives us more direct access to the contents of the form, is slightly cleaner than the single inheritance approach, but does not conveniently support composition of multiple user interfaces.

"...but does not conveniently support composition of multiple user interfaces" what does this mean?.

helloworld
25th May 2011, 12:07
I think it means that using the single inheritance approach (composition) you can define more than one UI within the same widget, this is not possible with the other approach.