Results 1 to 3 of 3

Thread: Poor quality images in QTextBrowser

  1. #1
    Join Date
    May 2012
    Location
    Germany
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Poor quality images in QTextBrowser

    Hello,

    I use a QTextBrowser to display an HTML-document. If the image needs to be scaled for display, the picture is really poor. It looks as if the QTextBrowser scales the image internally with the Qt::FastTransformation. Is it possible to force the QTextBrowser to use Qt::SmoothTransformation mode somehow?


    I also tried to scale the Image in the loadResource-method. But I don't know the the size of the image that is given in the HTML-file. I don't want to parse the HTML-file.

    Any suggestions?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,328
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Poor quality images in QTextBrowser

    What does the image look like in a normal web browser (Firefox, IE, Chrome)? Is the quality better when you scale it? If not, you might be stuck with whatever you get from the HTML file.

  3. #3
    Join Date
    May 2012
    Location
    Germany
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Poor quality images in QTextBrowser

    In firefox and IE the it looks good.
    I've made the following test. I looked up the size of the picture given in the HTML-file. Then I scaled the Image in the loadResource-method using the 'Qt::SmoothTransformation'-Mode. The the picture looks good like in Firefox. But in fact I don't know the target-size coming form the HTML-file.

Similar Threads

  1. Replies: 1
    Last Post: 16th November 2010, 17:45
  2. Poor OpenGL quality on Mac OS 10.5.8, even demos
    By MattPhillips in forum Installation and Deployment
    Replies: 3
    Last Post: 6th March 2010, 04:55
  3. poor Quality after QPixmap::scaled()
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 1st October 2007, 21:43
  4. Printing Screenshot -> poor quality
    By MarcSchubert in forum Qt Programming
    Replies: 2
    Last Post: 14th May 2007, 10:48
  5. CSS + images in a QTextBrowser
    By Lykurg in forum Newbie
    Replies: 3
    Last Post: 1st February 2007, 20:58

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
  •  
Qt is a trademark of The Qt Company.