If I provide modified arguments to QApplication they are NOT used by WebEngine/Chrome/Blink
e.g.:
QApplication a(argc, my_argv);
qDebug() << "my_argv: " << qApp->arguments();
// ("C:\\temp\\app.exe", "--ppapi-flash-path=./pepflashplayer.dll") but no flash
so my_argv should be passed down to WebEngine but not honored
starting app manually from console works as expected:
app.exe --ppapi-flash-path=./pepflashplayer.dll
Starting app from IDE with properly set Working Directory and Arguments (--ppapi-flash-path=./pepflashplayer.dll) works too
Is Chromium still relying on arguments retrieved by GetCommandLine() ... in that case I'm not sure if this is a BUG or feature request to fix QWebEngine to conform to Qt design specs and use QApplication provided arguments actually.
- relates to
-
QTBUG-51963 API to set chromium flags
-
- Closed
-
| For Gerrit Dashboard: QTBUG-51971 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 153542,2 | Add CommandLine::CreateEmpty | 45-based | qt/qtwebengine-chromium | Status: MERGED | +2 | 0 |
| 153543,4 | Fix CommandLine initialization on Windows | 5.6 | qt/qtwebengine | Status: MERGED | +2 | 0 |
| 153837,2 | Add CommandLine::CreateEmpty | 49-based | qt/qtwebengine-chromium | Status: MERGED | +2 | 0 |
| 158809,2 | Add CommandLine::CreateEmpty | 51-based | qt/qtwebengine-chromium | Status: MERGED | +2 | 0 |
| 677444,1 | [4]Add CommandLine::CreateEmpty | 134-based-refactor | qt/qtwebengine-chromium | Status: ABANDONED | 0 | 0 |