PDA

View Full Version : QVector<QImage>



sabeesh
9th October 2007, 07:35
Hi,
I have a code in QT3, its like this,

QVector<QImage> m_RGB;
m_RGB.setAutoDelete(true);
it is working in QT3, But when I try it in QT-4.3 it display an error like this

error: ‘class QVector<QImage*>’ has no member named ‘setAutoDelete’
why? Please help me

marcel
9th October 2007, 07:58
No equivalent in Qt 4.
And you don't have to store pointers to QImage since it is an implicitly shared class. Just store QImage objects and will be deleted when the list is destroyed.