________________________________________ From: interest-bounces+eclark=ara....@qt-project.org [interest-bounces+eclark=ara....@qt-project.org] on behalf of Guido Seifert [warg...@gmx.de] Sent: Friday, April 04, 2014 2:38 PM To: interest@qt-project.org Subject: Re: [Interest] QFileInfoList inheritance producing warnings
>> 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. I am sorry, but are there any Qt developers (or anyone with a better answer or at least an explanation of why not to do it) out there that could answer this question for me? If it was not intended to be inherited, then please explain to me why Qt can do it without problems? As an example, QStringList does exactly this (it is a prefect example of a class that inherits QList<QString>). > 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