PDA

View Full Version : WebEngine custom plugin path



catinahat
18th August 2016, 20:33
I want to specify a custom plugin directory for QtWebEngine, since I want to create a non-installed plugin for my portable browser.

I have looked through the documentation and can see that QtWebEngine uses Chrome's installed plugins, but I don't want to assume Chrome's previous installation.

Previously with QtWebKit an environmental variable (QTWEBKIT_PLUGIN_PATH) could be set to achieve this... Now, I don't know anymore.

Any ideas?

Thanks!



Qt 5.7, Win10

ChrisW67
18th August 2016, 23:13
See if you can make it go using the information here:
http://doc.qt.io/qt-5/qtwebengine-features.html#pepper-plugin-api
There are specific options for loading the Pepper Flash plugin from a particular location and generic options for other plugins. You may need a wrapper exe or script to inject the extra commandline options.

catinahat
22nd August 2016, 15:15
Thanks for the info! I'll get started.