Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

DOM Access to Qt5 QML WebView



  • I want to use a Qt5 QML WebView (QtWebKit 3.0) and access the DOM of the document in the WebView. Specifically, I want to select a word in the WebView and get some DOM attributes associated with that word. The html document is a string generated by the program.

    I have done this before in a non-QML Qt program using javascript in the document that calls c++ with the DOM attributes. This does not seem to be possible with a QML WebView. Does anyone know how to access the DOM of a WebView?


Log in to reply