Thank you No'am, that fixed it! Regards,
Leander On Wed, Oct 19, 2011 at 3:59 PM, <[email protected]> wrote: > > Hi Leander > > Hello, > > > I've been using the latest QtWebKit port ( the one that ships with the Qt > 4.8.0 RC ) on Mac OS X 10.7 and testing the accelerated compositing and > CSS3 animations. My small example uses the following code: > > QApplication a(argc, argv); > > QGraphicsScene scene; > > QGraphicsView gview(&scene); > > QGraphicsWebView webView; > > gview.setRenderHints(QPainter::Antialiasing | > QPainter::TextAntialiasing| QPainter::HighQualityAntialiasing > |QPainter::SmoothPixmapTransform); > > > webView.setUrl(QUrl("http://www.satine.org/research/webkit/snowleopard/snowstack.html")); > > //webView.setUrl(QUrl("http://www.html5test.com")); > > scene.addItem(&webView); > > gview.setProperty("size",QSize(800,600)); > > gview.setViewport(new QGLWidget()); > > gview.setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate); > > gview.show(); > > return a.exec(); > > > You should enable tiled backing store as well. > QWebSettings::globalSettings()->setAttribute(QWebSettings::TiledBackingStoreEnabled, > true) > > Otherwise you're rendering all web pages with the GL paint engine, which > is probably not what you want. > > No'am >
_______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
