[Solved] QWebkit is not able to detect NPAPI plugin
-
I have developed one NPAPI based plugin and kept in under /usr/bin/mozilla/plugins directory.
I have created one sample html page which merely embeds this npapi plugin. It is getting loaded by mozilaa, but same page when I am trying to load via QWebView , it is not detecting that.Please help where shall I keep my NPAPI plugin to detect it by Qt.
I am working on Debian Linux.
-
Did you enable plugins in yours program?
"Documentation of enum":http://doc.qt.digia.com/qt/qwebsettings.html#WebAttribute-enum
QWebSettings::PluginsEnabled
@
QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled);
@ -
Take a look at "this":http://doc.qt.digia.com/latest/qtwebkit.html#netscape-plugin-support. You should also enable plugins in "QWebSettings":http://doc.qt.digia.com/latest/qwebsettings.html#WebAttribute-enum and the attribute QWebSettings::PluginsEnabled
-
Hey Guyz , thanks for your reply, but I have enabled this. No help! :(
-
Answer lies at this url http://qt.gitorious.org/qt/qt/blobs/4.8/src/3rdparty/webkit/Source/WebCore/plugins/PluginDatabase.cpp under method name "defaultPluginDirectories"
-
The same answer was already provided by rcari (see "the first link he provided":http://doc.qt.digia.com/latest/qtwebkit.html#netscape-plugin-support).
-
[quote author="rcari" date="1350394833"]Take a look at "this":http://doc.qt.digia.com/latest/qtwebkit.html#netscape-plugin-support. You should also enable plugins in "QWebSettings":http://doc.qt.digia.com/latest/qwebsettings.html#WebAttribute-enum and the attribute QWebSettings::PluginsEnabled[/quote]
This is very useful.. Thanks a lot...