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. Qt 5, QtWebKit, Flash-plugin availability
QtWS25 Last Chance

Qt 5, QtWebKit, Flash-plugin availability

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 3 Posters 3.6k Views
  • 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.
  • D Offline
    D Offline
    D.Lowl
    wrote on 8 Jun 2013, 11:23 last edited by
    #1

    How can I get information if Flash NPAPI plugin available for WebKit in program?
    I have following code
    @ui->_client->settings()->setAttribute(QWebSettings::PluginsEnabled, true);@

    But if Flash plugin isn't available I want to suggest installing it. Any ideas? I'm not sure that it's a good idea to try to do it through file system.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bjanuario
      wrote on 8 Jun 2013, 18:22 last edited by
      #2

      Take a look at "http://qt-project.org/doc/qt-5.0/qtwebkit/qwebpluginfactory.html":http://qt-project.org/doc/qt-5.0/qtwebkit/qwebpluginfactory.html maybe this can helps you.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        D.Lowl
        wrote on 10 Jun 2013, 03:52 last edited by
        #3

        Ok. I've tried to get Plugins list with this
        @ui->_client->settings()->setAttribute(QWebSettings::JavascriptEnabled, true);
        ui->_client->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
        ui->_client->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
        QListQWebPluginFactory::Plugin plugins = ui->_client->page()->pluginFactory()->plugins();@
        But I've got the following application output
        @Starting C:\qtsihvi\build-untitled-Desktop_Qt_5_0_2_MinGW_32bit-Release\release\untitled...
        Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
        The program has unexpectedly finished.
        C:\qtsihvi\build-untitled-Desktop_Qt_5_0_2_MinGW_32bit-Release\release\untitled exited with code -1073741819@
        I guess that I try to get some insecure data, but I don't know have to correct this code.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wmalinowski
          wrote on 10 Jun 2013, 08:59 last edited by
          #4

          If your application uses WebKit do display your content and is not a general purpose web browser then you can use JavaScript to detect the availability of the Flash plugin and its version (i.e. using getFlashPlayerVersion/hasFlashPlayerVersion from swfobject).

          You can then display the warning message directly from JS or pass the availability information to your native code using a method exposed through WebKit bridge.

          1 Reply Last reply
          0

          1/4

          8 Jun 2013, 11:23

          • Login

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