[Kde-bindings] Images in HTML displayed by a QLabel

Mat Arge argemat1010 at gmail.com
Mon Jul 13 12:26:59 UTC 2015


Hy!

I am using a QLabel to display some simple HTML via Qyoto. This works quite 
fine under linux, but if I run the same code in windows (8.1), the images 
aren't shown but replaced by some placeholder stock icons. I tried to 
reference the image source via a file path or to enter the base64 data inline, 
but that didn't make any difference. Here are some code snippets I am using:

string htmlString = String.Format (@"<html>
	<head>
		<title></title>
          </head>
	<body>
		<table>
			<tr>
				<td><img src={0} /></td> 
				<td>foo</td>
			</tr>
		</table>
	</body>
	</html>",
			                                
//String.Format("\"data:image/png;base64,{0}\"", LogoB64));
"logo.jpg");

var content = new QLabel();
content.Alignment = Qt.AlignmentFlag.AlignTop;
content.TextFormat = Qt.TextFormat.RichText;
content.Text = htmlString;

Am I doing something wrong, or is this a bug in Qyoto (4.0.7)?

cheers
Mat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20150713/03345a04/attachment.sig>


More information about the Kde-bindings mailing list