On 20 Sep 2004 at 10:46, Prabu Subroto wrote:
Date sent: Mon, 20 Sep 2004 10:46:48 -0700 (PDT)
From: Prabu Subroto
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