Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt5 WebKit not detecting NPAPI plugin
Forum Updated to NodeBB v4.3 + New Features

Qt5 WebKit not detecting NPAPI plugin

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    XuryaX
    wrote on 22 Jan 2014, 18:17 last edited by
    #1

    @#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

    1 Reply Last reply
    0

    1/1

    22 Jan 2014, 18:17

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved