[PyKDE] Displaying an image
shlomme at gmx.net
Sun Aug 15 23:01:15 BST 2004
> I need to embed a jpg file in a dialog. As a test was just trying
> view = QWidget()
> pixmap = QPixmap("myimage.jpg")
> p = QPainter(view)
> 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
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
More information about the PyQt