PDA

View Full Version : Error with a QList<QImage>



Sirithang
15th November 2009, 15:37
I search the forum but could not find an answer.

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



QList<QImage> tab;

tab.append(QImage("myImage.png"));

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



QList<QImage> tab;
QImage temp("myImage.png");

tab.append(temp);

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...