Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Running Flash plugin in Qt app
Forum Updated to NodeBB v4.3 + New Features

Running Flash plugin in Qt app

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 5.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sasmaster
    wrote on 12 Sept 2011, 10:33 last edited by
    #1

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

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on 13 Sept 2011, 06:51 last edited by
      #2

      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);
      @

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sasmaster
        wrote on 23 Oct 2011, 09:50 last edited by
        #3

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

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on 23 Oct 2011, 12:38 last edited by
          #4

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

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sasmaster
            wrote on 23 Oct 2011, 12:41 last edited by
            #5

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

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on 23 Oct 2011, 12:46 last edited by
              #6

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

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sasmaster
                wrote on 25 Oct 2011, 19:51 last edited by
                #7

                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?

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on 27 Oct 2011, 22:46 last edited by
                  #8

                  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?

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved