Results 1 to 4 of 4

Thread: QTextBrowser, html & pictures

  1. #1
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default QTextBrowser, html & pictures

    Hi!

    I'm trying to view a 3pages Html file in a QTextBrowser, itself in a QDialog.. and there are some problems with pictures display :
    - selection of text destroy the picture on the side of this text
    - scrolling distroy picture and there's no refresh unless you enter text (if its a QTextEdit) or resize the widget...

    ie : after a fiew up-down and selections there's nothing left to see at the picture's place...

    -a forced refresh isn't so great since images on the top, half on the page half out, are not displayed when making update()...

    Does anyone already experienced that?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Posts
    3
    Qt products
    Qt3 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextBrowser, html & pictures

    QTextBrowser is not full-featured browser html renderer.
    If you have complex html pages you'd like to have same view
    as IE or Firefox you need to think about another solutions.
    If you are using Windows you can use IE ActiveX component
    to embed the browser. I used the solution and it works well.

  3. #3
    Join Date
    Feb 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTextBrowser, html & pictures

    Well thanks!
    But in fact I first just wanted to show a page with pictures and text on there side, it's not really like needing something huge, but I experienced those troubles with pictures display.. Seems that reimplementing the repaint() of the QTextBrowser, and the way it deels with images and refresh them could do, but I was wondering if there were not time saving solution..
    I'm looking at how ActiveX are implemented and it seems to big an implementation for my little help page, morever the soft will run on machine where IExplorer is so bad. Maybe with a little simplist browser...
    Thanks

  4. #4
    Join Date
    Mar 2006
    Posts
    21
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: QTextBrowser, html & pictures

    hi jey ,am newbie and wanted to view ur source code as am also working on html browser & also facing lots of problems in it so please mail me ur source code so that if i have some tricks then i can share it with u .

Similar Threads

  1. How to disply Simplified Chinese in QTextBrowser
    By xjtu in forum Qt Programming
    Replies: 1
    Last Post: 21st April 2008, 08:15
  2. 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
  3. Loading images in html in a QTextBrowser
    By BasicPoke in forum Newbie
    Replies: 1
    Last Post: 6th June 2007, 21:51
  4. [QT4] QtextBrowser and image size (win)
    By sebgui in forum Qt Programming
    Replies: 0
    Last Post: 28th March 2006, 21:01

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.