[PyQt] QMessageBox.about() with html text

Dirk Wagener dwagen at stonethree.com
Mon Nov 12 14:34:51 GMT 2007


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.

Kind regards
Dirk

-- 
Dirk Wagener <dwagen at stonethree.com>
(MSc. Electronic Engineering, Stell.)

Project Engineer
Stone Three Signal Processing (Pty.) Ltd.
http://www.stonethree.com
+27 21 851 3123 (phone)
+27 21 851 3127 (fax) 


We shall not cease from exploration and the end of all our exploring will
be to arrive where we started... and know the place for the first time.
T.S. Eliot



More information about the PyQt mailing list