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. [Solved] QWebkit is not able to detect NPAPI plugin
Forum Updated to NodeBB v4.3 + New Features

[Solved] QWebkit is not able to detect NPAPI plugin

Scheduled Pinned Locked Moved Qt WebKit
8 Posts 5 Posters 5.1k 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.
  • A Offline
    A Offline
    aashish.lg
    wrote on last edited by
    #1

    I have developed one NPAPI based plugin and kept in under /usr/bin/mozilla/plugins directory.
    I have created one sample html page which merely embeds this npapi plugin. It is getting loaded by mozilaa, but same page when I am trying to load via QWebView , it is not detecting that.

    Please help where shall I keep my NPAPI plugin to detect it by Qt.

    I am working on Debian Linux.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      guziemic
      wrote on last edited by
      #2

      Did you enable plugins in yours program?

      "Documentation of enum":http://doc.qt.digia.com/qt/qwebsettings.html#WebAttribute-enum

      QWebSettings::PluginsEnabled

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rcari
        wrote on last edited by
        #3

        Take a look at "this":http://doc.qt.digia.com/latest/qtwebkit.html#netscape-plugin-support. You should also enable plugins in "QWebSettings":http://doc.qt.digia.com/latest/qwebsettings.html#WebAttribute-enum and the attribute QWebSettings::PluginsEnabled

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aashish.lg
          wrote on last edited by
          #4

          Hey Guyz , thanks for your reply, but I have enabled this. No help! :(

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aashish.lg
            wrote on last edited by
            #5

            Answer lies at this url http://qt.gitorious.org/qt/qt/blobs/4.8/src/3rdparty/webkit/Source/WebCore/plugins/PluginDatabase.cpp under method name "defaultPluginDirectories"

            1 Reply Last reply
            0
            • G Offline
              G Offline
              guziemic
              wrote on last edited by
              #6

              Thanks for information. Nice to know that the definition is there.

              Only one small comment, the link which you provide in post has a quotation mark at the end. In result is does not work. Could you correct it?

              1 Reply Last reply
              0
              • K Offline
                K Offline
                KA51O
                wrote on last edited by
                #7

                The same answer was already provided by rcari (see "the first link he provided":http://doc.qt.digia.com/latest/qtwebkit.html#netscape-plugin-support).

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Macro
                  wrote on last edited by
                  #8

                  [quote author="rcari" date="1350394833"]Take a look at "this":http://doc.qt.digia.com/latest/qtwebkit.html#netscape-plugin-support. You should also enable plugins in "QWebSettings":http://doc.qt.digia.com/latest/qwebsettings.html#WebAttribute-enum and the attribute QWebSettings::PluginsEnabled[/quote]

                  This is very useful.. Thanks a lot...

                  1 Reply Last reply
                  0

                  • Login

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