[Qt-interest] QtWebKit plugin issues

Peter pgeorges at gmail.com
Fri Oct 23 10:19:09 CEST 2009


I have a few issues with QtWebKit under both osx 10.6 (using Qt 4.6.0beta1
w/cocoa) and linux (using Qt 4.5.2). Firstly, I cannot get flash working at
all (I use youtube as a test). I set the globalSettings() correct as
follows:

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

QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled,
true);

then when I load the page I confirm that plugins and javascript are both
enabled:

  std::cout << "plugins enabled: " <<
webView->page()->settings()->testAttribute(QWebSettings::PluginsEnabled) <<
std::endl;
  std::cout << "javascript enabled: " <<
webView->page()->settings()->testAttribute(QWebSettings::JavascriptEnabled)
<< std::endl;
  webView->load(QUrl(url));

prints out:

plugins enabled: 1
javascript enabled: 1

I have flash10 installed on both linux and osx in the correct directories,
but it just tells me that I have no flash browser installed or my javascript
is not enabled...

What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091023/11f476be/attachment.html 


More information about the Qt-interest-old mailing list