Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Poor quality images in QTextBrowser



  • Hello,

    I use a QTextBrowser to display an HTML-document. If the image needs to be scaled beause the HTML-size is different than the picture size, this picture looks 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.

    If I open the this HTML-file with e.g. Firefox, the image looks good.

    Any suggestions?


Log in to reply