<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">My application employs several QWebView widgets to provide richtext layout and a webbrowser like navigation. Currently they get filled by using the setHtml() method, and by setting the link policy almost full control can be taken over this class.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Right now setting the widget's content by using setHtml() limits the application though, as _all_ data needs to be available before filling the widget. Similar to a web connection the data here arrives in single chunks as a database thread in the background produces the content. Storing the previously arrived data and repainting the widget by setHtml() each time additional data arrives is not an option (slow, screen blanking, scroll bar issue).<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>So I wonder if the Qt folks actually anticipated people using the class as a rich text widget in a non-network environment. I could try to implement the HTML rendering process into a local webserver implying overhead, or look for a different way around this, e.g. overloading the page's QNetworkAccessManager.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Any suggestions?<br>
Christoph</p></body></html>