[Qt-interest] QImageReader size() function failing
Cole, Derek
dcole at integrity-apps.com
Fri Jun 17 20:49:20 CEST 2011
Sorry - stupid outlook web access sent that prematurely because I hit ctrl+enter apparently when trying to paste. Anyway...
QImageReader reader(filename);
qDebug()<<"Can Read: "<<reader.canRead();
if(reader.size().isValid())
qDebug("Image size: ", reader.size());
This snippet is crashing. I am not sure why - the canRead() function returns true, and I am doing a test for validity, and it seems to be valid.
The image loads fine if I use a line like this:
QImage *qi = new QImage(filename);
Am I forgetting a crucial step?
________________________________
From: Cole, Derek
Sent: Friday, June 17, 2011 2:47 PM
To: qt-interest at qt.nokia.com
Subject: QImageReader size() function failing
The following snippet is giving me trouble:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110617/35c7f4f2/attachment.html
More information about the Qt-interest-old
mailing list