PDA

View Full Version : QWebView - how to focus in a flash element ?



rsilva
30th April 2011, 14:13
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 ?

wysota
4th May 2011, 19:44
How can I focus the flash element ?
QWebElement::setFocus()

rsilva
4th May 2011, 22:35
I've tried it by javascript and isn't working, but already solved with WM_LBUTTONDOWN and WM_LBUTTONUP messages
Thank you =)