In my little app, i have the following code:
if ( ! b.load(fileName) ) {
cerr << "Could not load image: " << qPrintable(fileName) << endl;
}
QImage b;
if ( ! b.load(fileName) ) {
cerr << "Could not load image: " << qPrintable(fileName) << endl;
}
To copy to clipboard, switch view to plain text mode
This works just fine under Windows and Linux, but i can't get it to work under Mac OS X (10.4.10).
I am using Qt 4.3.1
The filename and its permissions are OK.
I have also checked the path of the image formats plugins with this code:
for ( QStringList::Iterator p
= paths.
begin(); p
!= paths.
end();
++ p
) printf( "%s:", (*p).toLatin1().constData() );
QStringList paths = QCoreApplication::libraryPaths();
for ( QStringList::Iterator p = paths.begin(); p != paths.end(); ++ p )
printf( "%s:", (*p).toLatin1().constData() );
To copy to clipboard, switch view to plain text mode
This path seems to be OK, too.
Does anyone have an idea why QImage does not load the image?
Can I get more info why it does not load the image?
Any pointers, hints, suggestions, etc., will be highly appreciated.
Best regards,
Gabriel.
Bookmarks