Unable to get Inspect option in context menu in QWebEngineView.
Solved
QtWebEngine
-
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.
Thanks.
-
@Hetal
That's because it's not there forQWebEngineView
! You can't assume everything that was inQWebView
will be inQWebEngineView
.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.