Skip to content

Commit 7a8a2fe

Browse files
committedOct 2, 2024
reintroduce the runJavaScript method on QWebEnginePage for Qt 6
albeit without the callback parameter so far
1 parent cf8998b commit 7a8a2fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎generator/typesystem_webenginewidgets.xml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<object-type name="QWebEngineView">
55
</object-type>
66
<object-type name="QWebEnginePage">
7+
<inject-code class="pywrap-h" since-version="6">
8+
void runJavaScript(QWebEnginePage* theWrappedObject, const QString&amp; scriptSource, quint32 worldId = 0) {
9+
theWrappedObject->runJavaScript(scriptSource, worldId);
10+
}
11+
</inject-code>
712
</object-type>
813

914
<object-type name="QWebChannel"/>

0 commit comments

Comments
 (0)