[Interest] QFileInfoList inheritance producing warnings
André Somers
andre at familiesomers.nl
Fri Apr 4 21:56:51 CEST 2014
> Op 4 apr. 2014 om 21:38 heeft Guido Seifert <wargand at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list