Re: [mac] QImage.load fails
Just a rough guess: do you have the necessary image plugin available on Mac?
Re: [mac] QImage.load fails
I think so:
% ll /usr/local/qt/plugins/imageformats/
-rwxr-xr-x 1 root wheel 46K Aug 28 12:20 libqgif.dylib*
-rwxr-xr-x 1 root wheel 558K Aug 28 12:20 libqgif_debug.dylib*
-rwxr-xr-x 1 root wheel 167K Aug 28 12:20 libqjpeg.dylib*
-rwxr-xr-x 1 root wheel 1M Aug 28 12:20 libqjpeg_debug.dylib*
-rwxr-xr-x 1 root wheel 345K Aug 28 12:20 libqmng.dylib*
-rwxr-xr-x 1 root wheel 1M Aug 28 12:20 libqmng_debug.dylib*
-rwxr-xr-x 1 root wheel 41K Aug 28 12:20 libqsvg.dylib*
-rwxr-xr-x 1 root wheel 557K Aug 28 12:20 libqsvg_debug.dylib*
-rwxr-xr-x 1 root wheel 331K Aug 28 12:20 libqtiff.dylib*
-rwxr-xr-x 1 root wheel 1M Aug 28 12:20 libqtiff_debug.dylib*
Re: [mac] QImage.load fails
Re: [mac] QImage.load fails
Thanks a lot!
I have found this list of image formats:
bmp , pbm , pgm , png , ppm , xbm , xpm
Which I got with this code:
Code:
QList<QByteArray> formats
= QImageReader::supportedImageFormats();
for ( QList<QByteArray>::Iterator f = formats.begin(); f != formats.end(); ++ f )
printf("%s , ", f->constData() );
First of all, I am really supprised, because from QCoreApplication::libraryPaths() I've ot this path: /usr/local/qt-4.3.1/plugins
And there is the sub-directory imageformats, and in that there is libqjpeg.dylib .
So why is that?
Second, the question, of course is, what can I do?
Best regards,
Gabriel.