> Op 4 apr. 2014 om 21:38 heeft Guido Seifert <warg...@gmx.de> het volgende 
> geschreven:
> 
> 
>> Hello All,
>> 
>> I am in the process of creating a class that I would like to inherit 
>> QFileInfoList.
> 
> 
> Four words: Do not do it. QList's destructor not virtual -> not meant for 
> inheritance.

Well, you _can_, as long as you only add methods and no members. Qt does it 
too, with QQueue and QStack for instance. It can be convenient to add some nice 
API.

André

> 
> Guido
> 
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to