Important: Please read the Qt Code of Conduct -

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();

    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




    @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": , but it didnt load.

    And "the main website": 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": , 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.


Log in to reply