Skip to content

Commit

Permalink
reintroduce the runJavaScript method on QWebEnginePage for Qt 6
Browse files Browse the repository at this point in the history
albeit without the callback parameter so far
  • Loading branch information
usiems committed Oct 2, 2024
1 parent cf8998b commit 7a8a2fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions generator/typesystem_webenginewidgets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<object-type name="QWebEngineView">
</object-type>
<object-type name="QWebEnginePage">
<inject-code class="pywrap-h" since-version="6">
void runJavaScript(QWebEnginePage* theWrappedObject, const QString&amp; scriptSource, quint32 worldId = 0) {
theWrappedObject->runJavaScript(scriptSource, worldId);
}
</inject-code>
</object-type>

<object-type name="QWebChannel"/>
Expand Down

0 comments on commit 7a8a2fe

Please sign in to comment.