QObjects on interfaces

Andreas Pakulat apaku at gmx.de
Fri Jul 25 11:56:33 UTC 2008


On 25.07.08 07:47:38, Kris Wong wrote:
> > class IFoo : public QObject {};
> > class IBar : public QObject {};
> > class FooBar : public IFoo, public IBar {}; // this is now impossible.
> 
> That is not true.  C++ isn't java. ;)
> 
> http://www.parashift.com/c++-faq-lite/multiple-inheritance.html#faq-25.8

Nice, cannot remember seeing that when I last read the FAQ. Still I
wonder wether QObject itself has problems with this or not. i.e. wether
signals/slots and the meta object system still work. 

Andreas

-- 
You will be awarded some great honor.




More information about the KDevelop-devel mailing list