[Qt-interest] Toggle visibility of a QMainWindow's menu bar?
Andreas Diehl
krokodiehl at t-online.de
Sun Jan 11 16:14:10 CET 2009
Hello all.
I have got a problem with a QPixmap and a QLabel. I'd like to show an image using QLabel:
// String filePath = http://SOMEPATH/myImage.jpg; //doesn't work
String filePath = "C:/images/myImage.jpg"; //works perfectly
QPixmap pix = new QPixmap(filePath);
QLabel lbl = new QLabel("");
lbl.setPixmap(pix);
(I'm using QtJambi 4.4.2)
It works perfectly when the image path is a local file, but any webaddress doesn't do although it's the same picture (and of course a valid address).
Does someone have any idea? Needs the filePath-String a special format?
I played a bit with QUrl and QImage and QPicture, but with no other effect.
Thanks for your help.
Regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090111/e8472aa6/attachment.html
More information about the Qt-interest-old
mailing list