[Qt-interest] Overlapping images in QTextBrowser html

Dan Milburn danmilburn at clara.co.uk
Thu Sep 23 10:14:26 CEST 2010


Harri Pasanen wrote:
> Hi,
> 
> I'm looking into producing some HTML where images should overlap.
> It seems that QTextBrowser does not support styles, like
> <div style="position: absolute; z-index: 2; top: 74.5%; left: 81.1%; height: 
> 0; width: 0; margin: 0; padding: 0;">
> 
> So my options would be
> 
> 1. Use QWebView
> 2. reimplement QTextBrowser::loadResource in a derived class and do the image 
> compositing myself.
> 3. something else?
> 
> Any suggestions?
> 
The QText* classes only support a subset of HTML as documented at 
http://doc.qt.nokia.com/4.7/richtext-html-subset.html  If you want full 
HTML support use QtWebkit.

Dan



More information about the Qt-interest-old mailing list