Results 1 to 1 of 1

Thread: Error with a QList<QImage>

  1. #1
    Join Date
    Nov 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Error with a QList<QImage>

    I search the forum but could not find an answer.

    I've a weird probleme here, when i try to do :

    Qt Code:
    1. QList<QImage> tab;
    2.  
    3. tab.append(QImage("myImage.png"));
    To copy to clipboard, switch view to plain text mode 

    it doesn't append a thing...when i debug step by step under VS2008, tab[0] data is 0x00000....

    My image exist and is well load because if i do

    Qt Code:
    1. QList<QImage> tab;
    2. QImage temp("myImage.png");
    3.  
    4. tab.append(temp);
    To copy to clipboard, switch view to plain text mode 

    temp data is well set to an adress, but after the append, tab[0] is set to 0x0000 .....

    What i've done wrong? ^^"


    EDIT: My bad, that was not an error -__- it was me who paint my image not as it was itnended to do (not in the good rect)....Sorry, can someone delete my post, i haven't found how to do it...
    Last edited by Sirithang; 15th November 2009 at 16:31.

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.