[Qt-interest] QPixmap from URL
Andreas Diehl
krokodiehl at t-online.de
Sat Jan 31 16:37:28 CET 2009
Hello all.
I've got a QLabel which should display a QPixmap. Loading the pixmap from a local path works fine, but using a web address doesn't do. Here's my code (using Qt 4.4.3 and QtJambi):
QPixmap pixmap = new QPixmap("C:/projects/images/myPic.jpg"); //<-- works fine
//QPixmap pixmap = new QPixmap("http://SOMEPATH/myPic.jpg"); //<-- no effect
QLabel label = new QLabel();
label.setPixmap(pixmap);
The URL is correct and it's the same picture. Thus I quess using a web address does require some special format? I also tried using QUrl with no better result.
So perhaps some of you might have an idea or even solution. It's propably quite simple :-)
Thanks and regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090131/ea2cc9ee/attachment.html
More information about the Qt-interest-old
mailing list