Dear Alan...
Firstly, thank you very much for your answer.
I converted the image into png format with gimp 2.0 .
I did the same like this:
#include
On 20 Sep 2004 at 10:46, Prabu Subroto wrote:
Date sent: Mon, 20 Sep 2004 10:46:48 -0700 (PDT) From: Prabu Subroto
To: suse-programming-e@suse.com Subject: [suse-programming-e] QPainter does not show up the image file Dear my friends...
I am using SuSE 9.1 and Qt 3.2 .
I try this simple code: #include
#include void pixForm::init(QPainter * p) { p->drawPixmap( 0,0, QPixmap("images/iamlagiajan.jpg"),0,0,100,100); }
No problem in compiling. But if I run the compiled code, no picture showed up in the dialog form.
Where is my mistake?
Please tell me.
Thank you very much in advance.
Try turning it into a .png file (and don't forget to run qmake). Qt doesn't support .jpg out of the box...
alan -- http://www.ibgames.net/alan Registered Linux user #6822 http://counter.li.org Winding Down - Weekly Tech Newsletter - subscribe at http://www.ibgames.net/alan/winding/mailing.html
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com