Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Qt 5.2] Improving QWebView performance with large amount of data?
Morgen last edited by
I could be adding up to 100 lines every 200 msec. I batch the HTML I want to add to the page together in a single QString before calling QWebElement::appendInside, but it's still slow. Even after I stop updating the page, when I have a large amount of data in it lags to scroll through it or atleast maxes out the thread.
I'm not particularly tied to using WebKit if someone can suggest a totally different but faster way of displaying the data.
@const int numRecords = _RecordsQueue.size() - 1;
QWebElement element = ui.LogText->page()->mainFrame()->documentElement().findFirst("body");
html.reserve(325 * (numRecords + 1));
for(int i=0; i<=numRecords; i++)
const QString msg = _ToString->ToString(_RecordsQueue.at(i), _CurrentEncounterID);
html.append("<p>" % msg % "<p>");