PDA

View Full Version : QtWebKit plugin path



Strongoloid
6th April 2010, 23:57
Hi,

How do you specify a Flash plugin to use in Linux? I know that I can place the Flash plugin in specific locations according to the QtWebKit documentation, and I can also set QTWEBKIT_PLUGIN_PATH to point to a directory that can contain the plugin. However, my problem is that it seems to stop looking at the first one it finds, which is problematic if it finds Flash Player 9 before it finds Flash Player 10 and 10 is required.

For example, I have Flash Player 9 in the .mozilla/plugins directory where it says in the Qt documentation is one of the places it looks. I have Flash Player 10 in a folder that I point to with QTWEBKIT_PLUGIN_PATH set in my environment variables. My swf file is embedded in a QWebView, and was compiled with Flex 4 which requires Flash Player 10. It doesn't work and there are a bunch of errors because it's loading Flash Player 9. I have to make sure there aren't any other copies of Flash Player 9 in any of the hard-coded locations for it to finally load the one I pointed to in QTWEBKIT_PLUGIN_PATH.

Any suggestions?

bennyb
1st December 2010, 15:06
Hi, sorry for bumping an old thread but I have the same problem. I need to make sure my application loads a certain flash plugin from a directory that I can specify. I saw that QWebSettings used to have the function static QWebPluginDatabase *pluginDatabase(), which would let you use QWebPluginDatabase::setSearchPaths(const QStringList& paths).

However the pluginDatabase() function in QWebSettings.h is commented out, so I'm wondering if there is another way to do this now or why was it removed?

sky
7th September 2011, 06:20
Wonder if this would help:

void QCoreApplication::addLibraryPath ( const QString & path ) [static]

Prepends path to the beginning of the library path list, ensuring that it is searched for libraries first. If path is empty or already in the path list, the path list is not changed.

The default path list consists of a single entry, the installation directory for plugins. The default installation directory for plugins is INSTALL/plugins, where INSTALL is the directory where Qt was installed.

Thành Viên Mới
1st February 2012, 02:39
Wonder if this would help:

void QCoreApplication::addLibraryPath ( const QString & path ) [static]

Prepends path to the beginning of the library path list, ensuring that it is searched for libraries first. If path is empty or already in the path list, the path list is not changed.

The default path list consists of a single entry, the installation directory for plugins. The default installation directory for plugins is INSTALL/plugins, where INSTALL is the directory where Qt was installed.


How to Install libflashplayer.so?

andzoff
5th February 2013, 15:15
Hi there,
same problem again, with the flash plugin.
How can I let my application show a web page with flash content?

The story
My application was prefectly working with QWebView and flash.
The configuration was: RHEL 5.4 with Qt 4.7.2
I didn't need to do particular things. Just it was working.

Now
The same application (re-built obviously) doesn't deal with flash web pages.
The configuration is RHEL 5.8 and Qt 4.7.3

Of course the difference (between the two systems) is the firefox, now in the 17.x release.
The way to get the libflashplayer.so work with firefox is different. But now, in my current system, firefox works well with flash.

So, what can I do to have my Qt application work with flash web pages?
Any suggestion will be appreciated.

Thanks from Italy.