Qt5 WebKit not detecting NPAPI plugin



  • @#include "mainwindow.h"
    #include <QApplication>
    #include <QtWebKit>
    #include <QWebView>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    QWebView *view = new QWebView();
    QWebSettings::PluginsEnabled;
    view->load(QUrl("http://www.paulirish.com/demo/multi"));

    view->show();
    
    return a.exec&#40;&#41;;
    

    }@

    I am trying to load a plugin in QtWebkit Webview but it isnt being loaded. I couldnt find the right path as mentioned Here, but it isnt loading. I have added Env. Variable QTWEBKIT_PLUGIN_PATH to System Variable & MOZ_PLUGIN_PATH was already in user variable, added by Foxit Reader. I tried placing the plugin dll file on both the directories corresponding to the Env. Variables but it isnt loading the plugin. After i palced the plugin in Moz_plugin_path, firefox was able to detect the plugin.

    As for enabling the plugin in QTWebview i have tried using

    @QWebSettings::PluginsEnabled;@

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

    @view->page()->settings()->PluginsEnabled;@

    @view->page()->settings()->setAttribute(QWebSettings::PluginsEnabled, true);@

    but found success with none of them, I am using Windows 8.1 and Qt 5.2

    I tried loading "This PDF":http://www.wbutech.net/Notices/y_l_el_paper_2014.pdf , but it didnt load.

    And "the main website":http://www.wbutech.net/ is not showing the drop down menus, which is being showed in Firefox & Chrome. I couldnt figure whats wrong, though in "My post in Stackoverflow":http://stackoverflow.com/questions/21287871/qt5-webkit-not-detecting-npapi-plugin/21288473 , an user tried and copied my code and said that pdf was loading fine on hes computer. So i amnt sure what is wrong over here.

    -XuryaX


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.