Results 1 to 2 of 2

Thread: QTextBrowser don't load images images only under win Vista

  1. #1
    Join Date
    Sep 2010
    Posts
    45
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTextBrowser don't load images images only under win Vista

    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:
    Qt Code:
    1. <table cellpadding="3" cellspacing="0" border="0" align="left" width="185">
    2. <tr bgcolor="#000000"></tr>
    3. <tr>
    4. <td align="center" bgcolor="#090064"> <font size="12" color="#FFFFA7"> Photo 200</font> </td>
    5. </tr>
    6. <tr>
    7. <td align="center" bgcolor="#090064">
    8. <a href="#photo_200">
    9. <img src="C:/Program Files/Images/200.jpg" width="136" height="178" alt="" />
    10. </a>
    11. </td>
    12. </tr>
    13. </table>
    To copy to clipboard, switch view to plain text mode 

    Do you have some idea?
    Last edited by bred; 15th November 2010 at 18:17.

  2. #2
    Join Date
    Sep 2010
    Posts
    45
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextBrowser don't load images images only under win Vista

    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.

Similar Threads

  1. GIF or MNG images for use in html for QTextBrowser
    By manojmka in forum Qt Programming
    Replies: 3
    Last Post: 2nd January 2008, 16:30
  2. Loading images in html in a QTextBrowser
    By BasicPoke in forum Newbie
    Replies: 1
    Last Post: 6th June 2007, 21:51
  3. CSS + images in a QTextBrowser
    By Lykurg in forum Newbie
    Replies: 3
    Last Post: 1st February 2007, 20:58
  4. How to display images in QTextBrowser ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2007, 08:58
  5. Loading images in QTextBrowser
    By nisha0609 in forum Qt Programming
    Replies: 1
    Last Post: 3rd January 2007, 09:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.