Results 1 to 3 of 3

Thread: QWebView - how to focus in a flash element ?

  1. #1
    Join Date
    Apr 2011
    Posts
    61
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QWebView - how to focus in a flash element ?

    I need my flash content to be focused every time that the window is the foreground window.

    But when I change windows by Alt-Tab or taskbar click, my flash content lose the focus.

    When I show my window again, the flash isn't focused, and I need to click it to focus again.

    I'm using WM_ACTIVATE to see when the window shows and so trying to focus.
    (I'm targeting only on windows, so don't need cross-platform things)

    How can I focus the flash element ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QWebView - how to focus in a flash element ?

    Quote Originally Posted by rsilva View Post
    How can I focus the flash element ?
    QWebElement::setFocus()
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2011
    Posts
    61
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView - how to focus in a flash element ?

    I've tried it by javascript and isn't working, but already solved with WM_LBUTTONDOWN and WM_LBUTTONUP messages
    Thank you =)

Similar Threads

  1. QWebView and Flash Streaming
    By JoeBoggs in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2012, 15:43
  2. QWebView problem with flash
    By TuBylem in forum Qt Programming
    Replies: 0
    Last Post: 25th September 2010, 13:10
  3. Flash plugin for QWebview in Symbian
    By vijay_vrc in forum Qt Programming
    Replies: 0
    Last Post: 12th August 2010, 08:33
  4. slow down the flash within the qwebview?
    By billconan in forum Qt Programming
    Replies: 1
    Last Post: 20th July 2009, 13:49
  5. Question about QWebView & Flash
    By JimDaniel in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2008, 18:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.