PDA

View Full Version : How to play flash with Qtwebkit



devin
31st August 2010, 07:47
I am running a Qt 4.6.2 in linux and want to use flashplayer plugin that i downloaded (10.1) in my QWebView.

m_pWebView = new QGraphicsWebView(this->graphicsItem());
QWebSettings *webSetting= QWebSettings::globalSettings();
webSetting->setAttribute(QWebSettings::JavascriptEnabled, true);
webSetting->setAttribute(QWebSettings::PluginsEnabled, true);
webSetting->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);

the libflashplayer is lay in /usr/lib/browser/plugins and I have that export QTWEBKIT_PLUGIN_PATH=/usr/lib/browser/plugins, but it can not able to show the embedded flash content in webpage.
Is there a specific location where I need to place this file(I have see the url that http://doc.trolltech.com/4.6/webintegration.html )? do I grab it using the QWebPluginFactory?

Thành Viên Mới
1st February 2012, 03:44
I am running a Qt 4.6.2 in linux and want to use flashplayer plugin that i downloaded (10.1) in my QWebView.

m_pWebView = new QGraphicsWebView(this->graphicsItem());
QWebSettings *webSetting= QWebSettings::globalSettings();
webSetting->setAttribute(QWebSettings::JavascriptEnabled, true);
webSetting->setAttribute(QWebSettings::PluginsEnabled, true);
webSetting->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);

the libflashplayer is lay in /usr/lib/browser/plugins and I have that export QTWEBKIT_PLUGIN_PATH=/usr/lib/browser/plugins, but it can not able to show the embedded flash content in webpage.
Is there a specific location where I need to place this file(I have see the url that http://doc.trolltech.com/4.6/webintegration.html )? do I grab it using the QWebPluginFactory?


yes, i also issue like you, can you help me fix it :(