From massimocallegari at yahoo.it Wed Jun 11 07:36:43 2014 From: massimocallegari at yahoo.it (Massimo Callegari) Date: Wed, 11 Jun 2014 15:36:43 +0100 (BST) Subject: [webkit-qt] QtWebKit 5.3.0 performances and footprint Message-ID: <1402497403.81396.YahooMailNeo@web172303.mail.ir2.yahoo.com> Hello everybody, I've had quite good results with QtWebKit 2.3.3 + Qt 4.8.5 + DirectFB on a MIPS platform. (2000 DMIPS) Now I've decided to make the big step and give Qt 5.3.0 a try. Same platform but this time I go directly on OpenGL ES 2.0 instead of using DirectFB. After quite a pain with the ICU library, I've been able to successfully run some QtWebKit examples and everything is up and running ! The results are not bad at all. If you are interested, I can share those I collected from either the Qt4 and the Qt5 system. Now I've got a few questions, mostly concerning the overall footprint, as it's around 30% bigger than the Qt4 system. ############ Footprint 1) on an embedded platform, print support is useless to me. Unfortunately, it seems there is no "configure" way to disable it on Qt5, so the consequence is that QtWebKit includes the print support too. Is there any way to disable them both ? This could save me around 1MB ! 2) QtWebKit's qmake process reports that both Webkit1 and Webkit2 are built into the final library. Are they both really required ? I've read on Allan's presentation made in November in San Franscisco that Webkit2 is related to QML development. I am keen to go that way, so I'd prefer to have a QtWebKit library with just the WebKit2 support. Is this possible ? 3) If #2 is possible, is there any QML browser example that I can take a look at ? The QtWebKit examples package doesn't include any. The only QML examples are for Flickr and YouTube. ############ Performances 1) it seems that font rendering is much slower on QtWebKit 5 but I can't be 100% sure if this depends on Qt or OpenGL. Can anyone explain the low level bits that take care of this part ? The reference test I used is this:?http://www.craftymind.com/factory/guimark2/HTML5TextTest.html On Qt4+DirectFB it does 0,48fps, while on Qt5+OGL it does 0,1fps. 2) Similar to the above, this test http://www.craftymind.com/factory/guimark2/HTML5GamingTest.html does 6,05fps on Qt4+DFB and 2,04fps on Qt5+OGL. Is there any explanation for this ? 3) I've ran all the benchmarks with the "browser" example, which is QtWidget-based. I'm wondering if a QML/SceneGraph based browser could boost the rendering up and give much better results. Anyone has had experiences/results on this ? Sorry for the long email. I hop someone (Allan ? :) ) can pick this up and enlighten me on some aspects. Thanks in advance ! Massimo -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlon.luca at gmail.com Thu Jun 12 06:41:51 2014 From: carlon.luca at gmail.com (Luca Carlon) Date: Thu, 12 Jun 2014 15:41:51 +0200 Subject: [webkit-qt] Youtube player callbacks Message-ID: Hello, I'm trying to show a Youtube player inside a QML scene. I therefore replicated the available example in Qt and I'm loading this html code into a QML WebView: -1
What seems to happen is that no callback is invoked at all. No onPlayerReady, no onPlayerStateChange and no onPlayerError. I tried both to post a message and set the title. If I load the same html into Chromium or Firefox I get all my callbacks. Any idea why or what can I do to add the player and get callbacks? I also tried to use the getPlayerState() method of the player from QML, but that seemed to hang. Any advice? Thanks. Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: From kde at carewolf.com Thu Jun 12 02:32:02 2014 From: kde at carewolf.com (Allan Sandfeld Jensen) Date: Thu, 12 Jun 2014 11:32:02 +0200 Subject: [webkit-qt] QtWebKit 5.3.0 performances and footprint In-Reply-To: <1402497403.81396.YahooMailNeo@web172303.mail.ir2.yahoo.com> References: <1402497403.81396.YahooMailNeo@web172303.mail.ir2.yahoo.com> Message-ID: <201406121132.02925.kde@carewolf.com> On Wednesday 11 June 2014, Massimo Callegari wrote: > 1) on an embedded platform, print support is useless to me. Unfortunately, > it seems there is no "configure" way to disable it on Qt5, so the > consequence is that QtWebKit includes the print support too. Is there any > way to disable them both ? This could save me around 1MB ! > It should be possible to disable printing in the main qt build which qtwebkit then inherits. > 2) QtWebKit's qmake process reports that both Webkit1 and Webkit2 are built > into the final library. Are they both really required ? I've read on > Allan's presentation made in November in San Franscisco that Webkit2 is > related to QML development. I am keen to go that way, so I'd prefer to > have a QtWebKit library with just the WebKit2 support. Is this possible ? > Yes. When building qtwebkit you can build with "qmake WEBKIT_CONFIG- =build_webkit2", or you can add a similar line in Tools/qmake/mkspecs/features/configure.prf. > 3) If #2 is possible, is there any QML browser example that I can take a > look at ? The QtWebKit examples package doesn't include any. The only QML > examples are for Flickr and YouTube. > Not really. You can check the MiniBrowser in qtwebkit tools, but it is also quite limited. Regards `Allan