Results 1 to 5 of 5

Thread: QtWebKit plugin path

  1. #1

    Question QtWebKit plugin path

    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?

  2. #2
    Join Date
    Dec 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtWebKit plugin path

    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?

  3. #3
    Join Date
    Dec 2010
    Posts
    44
    Thanks
    9
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtWebKit plugin path

    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.

  4. #4
    Join Date
    Jun 2010
    Posts
    102
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QtWebKit plugin path

    Quote Originally Posted by sky View Post
    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?
    Contact: Skype: sonnh89
    Yahoo: nhs_0702@yahoo.com

    Liên hệ SKype: sonnh89

  5. #5
    Join Date
    Mar 2010
    Location
    Italy, Rome
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QtWebKit plugin path

    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.

Similar Threads

  1. Bulding a PDF Plugin for qtWebKit using poppler
    By qt-liviu in forum Qt Programming
    Replies: 1
    Last Post: 8th October 2012, 14:15
  2. QtWebKit - install QuickTime plugin
    By gmat4321 in forum Qt Programming
    Replies: 1
    Last Post: 30th September 2009, 12:28
  3. Plugin LIBS path not found
    By vieraci in forum Qt Programming
    Replies: 7
    Last Post: 5th August 2009, 14:32
  4. How to open pdf in plugin with qtwebkit
    By Timmer in forum Qt Programming
    Replies: 1
    Last Post: 23rd July 2009, 10:46
  5. Qt4 plugin path problem
    By david.corinex in forum Installation and Deployment
    Replies: 6
    Last Post: 5th January 2008, 16:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.