[Qt-interest] QT Webkit and flash
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Fri Jun 4 11:00:27 CEST 2010
Dr. X wrote on Friday, June 04, 2010 4:12 AM:
> Hi Oliver,
> These are my global settings
They look good to me.
> QWebView* view = new QWebView;
> view->load(QUrl("http://www.youtube.com"));
> view->show();
That should work! At least that's how it works for me on Win XP / Qt 4.6.1, with Flash Plugin 10.0.x (installed via Firefox). And I just noticed this page which describes the plugin locations:
http://doc.qt.nokia.com/4.6/webintegration.html#netscape-plugin-support
I once was guided to this following blog (Dec 10, 2009):
http://blog.forwardbias.in/2009/12/flash-in-qgraphicsview.html
It sais that several patches have to be applied to Qt as to make Flash in QGraphicsView work on all platforms ("What follows is a brief summary of my work and the list of patches that you will need to get Flash working with Qt 4.6.0."). I am not sure whether these patches have already been incorporated into the latest Qt (4.6.2) or will be in the upcoming 4.7. Anyway, this seems to affect you: "All windowless mode changes for Linux are part of Qt/WebKit 4.6. QGV on linux can display Flash only in windowless mode. If Flash is in windowed mode (like in youtube), it does not work." (that would explain why you don't get anything while in QGraphicsView, while when looking at a web page in a "normal" QWebView you are at least asked for the plugin).
Note that "windowed" or "windowless" modes are not specific to Flash - that is how plugins in general are interacting with the browser: either they take full control over mouse/paint events etc. or are informed by the browser that they should react to these. Very informative blog!
Anyway, that article might contain the answers you are looking for.
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list