Two more things I can’t find in QWebEngine that are in QWebKit
-
wrote on 29 Dec 2014, 21:16 last edited by
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.
-
wrote on 9 Feb 2015, 09:45 last edited by
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")
@ -
wrote on 12 Mar 2015, 20:59 last edited by
I'm looking for the link delegate policy also. I had some link that open in the native browser using QWebView...