开发者

Qt question to fullscreen flash application

开发者 https://www.devze.com 2022-12-15 11:27 出处:网络
I am using Qt to开发者_如何转开发 develop an application and inside we have access to select flash streaming videos like youtube. Is there a way to programmaticly full screen the flash application wit

I am using Qt to开发者_如何转开发 develop an application and inside we have access to select flash streaming videos like youtube. Is there a way to programmaticly full screen the flash application without requiring interaction from the user?

I am using a "QWebView" control.


try calling showFullScreen for the window where your QWebView control is hosted.

void QWidget::showFullScreen ()
Shows the widget in full-screen mode.

Calling this function only affects windows.

To return from full-screen mode, call showNormal().


I would say: locate the button for the fullscreen application on the page, and send a click using QEVent. Tricky, but might work.

If the button is inside the flash application, you will have difficulties to locate it but if you succeed, you can probably send the click to the flash application area.


You can always inject javascript from Qt into your QWebPage. If there is a javascript API for forcing the flash viewer to full screen, I do not know.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号