Two more things I can’t find in QWebEngine that are in QWebKit
-
QWebPage offers the method setContentEditable(bool). I cannot find anything like that in QWebEnginePage or QWebEngineSettings. Are all pages editable (or not editable) in WebEngine?
QWebPage offers the method setLinkDelegationPolicy(policy), and when the policy is set to Delegate, it emits the signal linkClicked(URL). Again, I can't find anything similar in QWebEnginePage. Is it not possible for the app to examine clicked URLs in QWebEngine?
FYI, see this thread (http://qt-project.org/forums/viewthread/51488/) for two useful settings attributes that appear not to be supported, and see this one (http://qt-project.org/forums/viewthread/51489/) for the feature of testing the item under a right-click.
-
Regarding setContentEditable(), read here: http://qt-project.org/wiki/QtWebEnginePortingFromQtWebKit
"In the latest HTML standard, any document element can be made editable through the contentEditable attribute. So runJavaScript is all that is needed."
@
page->runJavascript("document.documentElement.contentEditable = true")
@