Results 1 to 2 of 2

Thread: QVector<QImage>

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QVector<QImage>

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QVector<QImage>

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.