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

QWebPluginFactory::create(..) - how to return content of the element?



  • Is it possible to get element content back in create function not only parameters?

    example:
    @<object type="text/QtScript" context="listView">
    this.clear();
    .....
    </object>@

    This would allow me to execute script in embedded HTML in my javascript engine on my backend.



  • I don't think you can do that directly. A work around would be to extract the content with QWebElement, but then the matching between plugins and content becomes tricky.


Log in to reply