qmlplugindump: Allow dumping of WebEngine plugins

WebEngineView requires a shared opengl context. The plugin checks for
this when initializing.

Change-Id: I686b9c22be95f7ef16ea68ea49b8f9aee47789ae
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
Kai Koehne 2016-05-04 11:45:48 +02:00
parent afd01a7341
commit 541eb6b704
1 changed files with 1 additions and 0 deletions

View File

@ -972,6 +972,7 @@ int main(int argc, char *argv[])
if (!requireWindowManager)
qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("minimal"));
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QGuiApplication app(argc, argv);
const QStringList args = app.arguments();
const QString appName = QFileInfo(app.applicationFilePath()).baseName();