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. Webkit: interact with flash
Forum Updated to NodeBB v4.3 + New Features

Webkit: interact with flash

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.3k 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.
  • N Offline
    N Offline
    Nico2050
    wrote on last edited by
    #1

    Hi all,

    First of all excuse me for my English.

    I created a web browser with Qt (and obviously WebKit) and I send some event to my QWebView.
    Exemple:
    @
    QWebView wv;
    QKeyEvent keys(QEvent::KeyPress,Qt::Key_A,Qt::NoModifier);
    QCoreApplication::sendEvent(&wv,&keys);
    @
    So far so good

    But sometimes I need to send some QKeyEvent to a flash object in my QWebView (and problems begin).
    I tried to catch the object with:
    @
    QWidget *obj = QApplication::focusWidget();
    @
    when the flash object has the focus, I can move it, know its coordinates,... but I can't send any events :'(

    Thank you in advance

    Nico

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Nico2050
      wrote on last edited by
      #2

      Hello it's me again,

      So I'll try an "easier" question: how catch the QWidget created to show the flash (is it possible)?

      Thank you

      Nicolas

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Keith Cancel
        wrote on last edited by
        #3

        I know in Microsoft visual studio you can add a shock wave flash player component to embed flash player into an application and then load a flash file and interact between the executable and .swf file. Yet, that is not a cross platform solution, but flash player is generally cross platform and what would give you the most control is embedding flash player into your application you could even modify values directly in the swf file (bit different for AS3). Also flash supports sockets so if you can't some how embed flash player into your application you can communicate with the flash content via sockets.

        ♫♪♪^。^ Always Whistling A Tune!

        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