How to improve scrolling lag in QWebView
-
I have an app where I have embedded an QWebView into one of my widgets. However, I have noticed that there is a lot of lag(compared to chrome and firefox) when I try to scroll a page like yahoo.com. I noticed similar lag in the aurora browser, which implies that this a fundamental problem with the component. Are there any best practices to improve the scroll lag of QWebView?
-
Check out the official documention on "QML Performance":http://doc.troll.no/4.7/qdeclarativeperformance.html . For me it's much more fluent if I use a GL composition manager (compiz) or render directly into a QGLWidget.
-
That won't help.
Which graphics engine are you using? I have yet to see a desktop computer render slowly with the raster graphics system.
-
Oh, and which version of Qt? Qt 4.7 is radically faster than 4.6: http://labs.qt.nokia.com/2010/08/24/improving-the-rendering-performance-with-more-simd/
-
Oh, I'm sorry, thought I was posting in the QtQuick forum...
-
I've seen this problem as well, on a Mac powerbook using a QWebView. The issue appeared to be a problem when the two-finger gesture on the trackpad was used to scroll through the webpage. Scrolling with an external mouse went just fine, so it wasn't to do with just rendering speed.
I'd be interested to hear about any possible workaround (would a QGraphicsWebView be any different?). My Qt experience is limited, so I couldn't find a solution on my own.