Clayton
Clayton

Reputation: 6271

How to install a plugin for QtWebKit

I am running a Qt 4.5 commercial snapshot and want to use a plugin that I downloaded (it's a .so file) in my QWebView. Is there a specific location where I need to place this file? Can I grab it using the QWebPluginFactory?

Upvotes: 7

Views: 7690

Answers (4)

Ariya Hidayat
Ariya Hidayat

Reputation: 12561

I am assuming the plugin here is the NPAPI plugin (e.g. Flash). Under X11, QtWebKit search several common directories for the plugin. For the complete list, see the documentation on Netscape plugin support.

In addition to that, you must enable plugin support via QWebSettings::. See the documentation for WebAttribute::::PluginsEnabled, either globally or for your particular QWebView only.

Upvotes: 9

Caleb Huitt - cjhuitt
Caleb Huitt - cjhuitt

Reputation: 14941

Have you tried looking around in /usr/lib/qt4/plugins/ or somewhere similar yet? I suppose that path will probably be where you have your 4.5 snapshot stuff compiled, but it should have options for putting in plugins for various things.

Upvotes: 0

shoosh
shoosh

Reputation: 78914

If you're a commercial client you should be demanding your money earned support directly from the trolltech(nokia) guys.

Upvotes: 2

Ashwin Nanjappa
Ashwin Nanjappa

Reputation: 78488

Have you tried putting in the standard library directories? It should be picked up by the linker if it's in one of those directories.

For example:

/lib/
/usr/lib/
/usr/share/lib/
/usr/local/lib/

Upvotes: 0

Related Questions