StupidBeauty
Read times:605Posted at:Thu Nov 15 00:51:16 2012
- no title specified

转载Showing flash in QWebView on a QScrollArea

要显示flash,需要在网页相关设置中启用插件: QWebSettings ::globalSettings()->setAttribute( QWebSettings ::PluginsEnabled, true);

http://qt-project.org/forums/viewthread/7512

亮点:

I’d like to show a flash video with other widgets on a QScrollArea. I’ve created a QWebView like that:

  1. 1. QNetworkProxyFactory::setUseSystemConfiguration (true);

  2. 2. QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);

  3. 3. QWebView* video = new QWebView(this);

  4. 4.video->setFixedSize(550,343);

  5. 5.video->setHtml(...);

The video appears

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands