Important: Please read the Qt Code of Conduct -

Running Flash plugin in Qt app

  • Is there a relatively easy way to embed Adobe Flash (SWF) movie into Qt Desktop project ?

  • Embed the video into some HTML and load it on a [[Doc:QWebView]]. You need to enable plugins, using

    QWebSettings *ws = QWebSettings::globalSettings();
    ws->setAttribute(QWebSettings::PluginsEnabled, true);
    // you may want to omit the following:
    ws->setAttribute(QWebSettings::JavascriptEnabled, true);
    ws->setAttribute(QWebSettings::JavascriptCanOpenWindows, true);
    ws->setAttribute(QWebSettings::JavascriptCanAccessClipboard, true);

  • I mean ,more on ActiveX level.I need an ability to communicate with Flash ActiveX ,calling Flash methods from the C++ .

  • Sorry, I don't have any experiences with that. Maybe someone else can help you out here.

  • If a "Mad Scientist" can't I am not sure I will find someone else :))
    Thanks anyways.

  • LOL :) There are even Mad Scientists who don't get their hands dirty with ActiveX :)

  • Volker ,If I tell you how to do it ,can I skip right to "Mad Scientist" status ? ;) Just kidding.In fact I managed to get it one within MFC application.MFC allows to add an ActiveX control to the ui resource and then ,with some tricky approach I found searching all kinds of Japanese (those dudes know everything) ,succeeded to call flash app methods from C++ and passinf parameters back and forth.
    My question is now ,is it possible to embed a shockwave ActiveX control in Qt like in MFC?

  • Unfortunately I cannot grant Mad Scientist status, but that approach looks decently insane and deserves some extra points :-)

    From what I heard - recall that I didn't get my hands dirty with that - ActiveX controls should be embeddable in Qt. Did you have a look at the "ActiveX docs":/doc/qt-4.7/activeqt.html already?

Log in to reply