[Qt-interest] want to put an image on label

Andreas Diehl Andreas_Diehl at abs.org
Tue May 12 08:15:54 CEST 2009


Hello.
Using QLabel::setPixmap() works fine with local files but if you want to
display an image from an URL, you'll need to use QHttp and download the
image, for example into a temporary file (QTemporaryFile) or QByteArray
and construct the pixmap from it.
I don't have my code available right now but I'll post it to the list if
you need further information this afternoon (in about 10 hours :)).

Regards,
	Andreas 


________________________________

	Von: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] Im Auftrag von Sai Chandra
	Gesendet: Dienstag, 12. Mai 2009 07:02
	An: qt-interest at trolltech.com
	Betreff: [Qt-interest] want to put an image on label
	
	

	In my application I want to upload an image on the label. May I
get some suggestions on how do I go about it..? 
	
	
	Thank You
	
	Regards,
	
	Sai Chandra G.V,
	PES,
	L&T Infotech Ltd,
	Plot No 25-31,EPIP Phase II,
	KIADB Industrial Area,Whitefield,
	BANGALORE-66,INDIA
	Mobile:+91 9900200782
	Office: 080-66241296
	
	
	Larsen & Toubro Infotech Ltd.
	www.Lntinfotech.com <http://www.lntinfotech.com/> 
	
	This Document is classified as: 
	
	L&T Infotech Proprietary   L&T Infotech Confidential   L&T
Infotech Internal Use Only   L&T Infotech General Business   
	
	This Email may contain confidential or privileged information
for the intended recipient (s) If you are not the intended recipient,
please do not use or disseminate the information, notify the sender and
delete it from your system. 
	
______________________________________________________________________
--
Mit freundlichen Gru?en
Andreas Diehl 
 
-------------------------- ABS -------------------------
ABS Systemberatung OHG          Tel: +49 (0)7053/9290-03
Hauffstr. 9                     Fax: +49 (0)7053/9290-
D-75385 Bad Teinach-Zavelstein        http://www.abs.org
Registergericht Calw HRA 1031
[mailto:Andreas_Diehl at abs.org]
 
----- Loesungen fuer den Maschinen- und Anlagenbau -----



More information about the Qt-interest-old mailing list