QML - extending an existing item
-
Hello,
I think it is posible by using Qt private headers.
-
I tried this approach but gave up after a day. This is tricky because private Qt headers are very hard to understand without Qt background knowledge.
Instead I use a QGraphicsProxyWidget with qmlRegisterType to extend and expose existing QWidget to QML.
In your case you could use QGraphicsWebView. -
It all depends on what you want to do with this webview. And I think using a QGraphicsWebView that is registered as a QDeclarativeItem may be a good idea.