PDA

View Full Version : QTextBrowser don't load images images only under win Vista



bred
15th November 2010, 18:11
In my code I'm generating dynamically an HTML that referrers to a collection of images stored in the HD.

I set the the HTML with the function my_page.setHtml( my_html )

As a result my code works correctly under Linux and windows 7
but under Windows Vista don't load the images.

In the html I'm writing the full path of the images using the slash as a directory separator.

That's a portion of the HTML source generated by my code:


<table cellpadding="3" cellspacing="0" border="0" align="left" width="185">
<tr bgcolor="#000000"></tr>
<tr>
<td align="center" bgcolor="#090064"> <font size="12" color="#FFFFA7"> Photo 200</font> </td>
</tr>
<tr>
<td align="center" bgcolor="#090064">
<a href="#photo_200">
<img src="C:/Program Files/Images/200.jpg" width="136" height="178" alt="" />
</a>
</td>
</tr>
</table>


Do you have some idea?

bred
16th November 2010, 17:45
Some news:
I've installed the Qt dev-eviroment on the PC with vista and the problem has been disappeared.


So it seems that this problem appear if we uses an application with the related dll in the same directory and the Qt SDK is not installed.