[Qt-interest] QAbstractItemModel::setHeaderData() and headerData()

Sean Harmer sean.harmer at maps-technology.com
Fri Jan 29 18:49:26 CET 2010


Hi,

On Friday 29 January 2010 17:26:15 j wrote:
> thanks, I get it now, but still, I think I'll go for he multiple-
> inheritance variation because I already have subclasses of
> 'MyModel' outside of 'RenderTools' depending on it. it's easier
> that way. 

OK. Whatever works.

> Incidentally, why is everybody so much 'against'
> multiple inheritance, personally, I really like it,
> it seems quite natural to me ;)

Probably because:

(a) You can not multiply inherit from two QObject based classes.
(b) It can come back in 6 months to bite you in the backside when you try to 
do something with your class that you did not consider in your initial design.

That is not to say that multiple inheritance is always evil though :-)

ATB,

Sean



More information about the Qt-interest-old mailing list