Unable to get Inspect option in context menu in QWebEngineView.
I am using QT 5.9.1. I want to inspect the page which is loaded in my webengineview. Inspect is not enabled in my context menu. I have upgraded webengine from webview. In webview we do have a QWebSettings::DeveloperExtrasEnabled in which the inspect is enabled by default.
That's because it's not there for
QWebEngineView! You can't assume everything that was in
QWebViewwill be in
Fortunately for you, https://stackoverflow.com/questions/28681141/qtwebengine-debugging offers a variety of solutions. The accepted answer there looks like you should be able to get what you want via an environment variable, or other answers are alternatives.
@JonB This does not make sense. The solution given in the stackoverflow link does not work.