Qt 5, QtWebKit, Flash-plugin availability
How can I get information if Flash NPAPI plugin available for WebKit in program?
I have following code
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.
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.
Ok. I've tried to get Plugins list with this
QListQWebPluginFactory::Plugin plugins = ui->_client->page()->pluginFactory()->plugins();@
But I've got the following application output
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.
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.