> I need to embed a jpg file in a dialog.  As a test was just trying
> something
> like:
> 
>     view = QWidget()
>     pixmap = QPixmap("myimage.jpg")
>     view.resize(pixmap.size())
>     p = QPainter(view) 
>     p.drawPixmap(0,0,pixmap)
>     view.show()
> 
> A window pops up, but it is empty.  What am I doing wrong?

Maybe you need to call QPainter.end() before showing the widget? I'm just
guessing, because I cannot try out the code right now. If this does not
help, reading through the QPainter docs and copying the code snippets might
help.

greetings

Torsten

-- 
NEU: WLAN-Router f�r 0,- EUR* - auch f�r DSL-Wechsler!
GMX DSL = superg�nstig & kabellos http://www.gmx.net/de/go/dsl

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to