Thank you for the responses that I did get. I still have not solved the 
problem, but switching to QVector instead of QList seems to have gotten rid of 
the warnings.

Thanks,
Eric
________________________________________
From: [email protected] 
[[email protected]] on behalf of Eric Clark 
[[email protected]]
Sent: Friday, April 04, 2014 3:17 PM
To: [email protected]
Subject: Re: [Interest] QFileInfoList inheritance producing warnings

________________________________________
From: [email protected] 
[[email protected]] on behalf of Guido Seifert 
[[email protected]]
Sent: Friday, April 04, 2014 2:38 PM
To: [email protected]
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
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to