Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt bridge: how to receive JS objects
obs_sergio last edited by
I have implemented a simple plugin using @QWebPluginFactory@
and the Qt bridge.
The plugin creates an object using my class, when the HTML contains an embedded object with the mime type I defined.
So I defined a method in my class, like the following
void MyClass::method1 (const QWebElement& object)
and another one like
void MyClass::method2(QObject *object)
myobject = document.getElementById('myobject');
myargument = new Array();
/* The following call errors with 'Error: incompatible type of argument(s) in call to method2(); candidates were
How can I receive a JS object in the methods I define and have access to its methods and properties?