21 Sep
2004
21 Sep
'04
11:51
On Monday 20 September 2004 19:46, Prabu Subroto wrote:
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?
You need to do that in a paint event, not at widget initialzation.
You might want to read the first few chapters of a book about Xlib
(e.g. http://www.amazon.com/exec/obidos/tg/detail/-/1565920023/ ) to learn
why.
CU
--
Stefan Hundhammer