[PyQt] QMessageBox.about() with html text
Hans-Peter Jansen
hpj at urpla.net
Mon Nov 12 20:00:09 GMT 2007
Am Montag, 12. November 2007 schrieb Dirk Wagener:
> Hi
>
> I have:
>
> QMessageBox.about(None, "Title Text", text )
>
>
> with
>
> text = "<html><body bgcolor="#ff0000" text="#ffffff">
>
> <h2>Test image:</h2>
>
> <center><img src="images/test.bmp" border="1" color="white"></center>
>
> </body></html>"
>
>
> How do I get the QMessageBox() to use the bgcolor (red) and also to
> display the image?
> Currently it uses the default grey background color and shows a
> placeholder for the image.
For the image issue: using QMimeSourceFactory comes to my mind..
Pete
More information about the PyQt
mailing list