July 6, 2011

birmacher birmacher
Lab Rat
2 posts

Showing flash in QWebView on a QScrollArea



I’d like to show a flash video with other widgets on a QScrollArea. I’ve created a QWebView like that:

  1. QNetworkProxyFactory::setUseSystemConfiguration (true);
  2. QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
  3. QWebView* video = new QWebView(this);
  4. video->setFixedSize(550,343);
  5. video->setHtml(...);

The video appears, but in most of the cases the mouse input is not working well, under mac – another developer sad that, the same code is working as it should under windows.
the problem is that the mouse pointer inside the flash player is not detected where it really is. It seems that it adds an offset.
Also when the scrollbar is scrolled away, the offset changes again according to the scrolling.

It says I’m using QtWebKit version 2.0.2.
Is it make sense to give a try for the new 2.2 beta? http://trac.webkit.org/wiki/QtWebKitRelease22 (Am I able to replace this with the one presented with the SDK?)

0 replies

  ‹‹ Rewinding and/or seeking html5 video raises INDEX_SIZE_ERR      Qt Webkit Debug Compilation "MediaPlayerPrivate" error. ››

You must log in to post a reply. Not a member yet? Register here!