QML - extending an existing item
-
wrote on 22 May 2012, 15:06 last edited by
How to extend an existing WebView in QML (I mean adding background in C++) and still be able to use that in QML ?
Multiinheritance of QWebView and DeclarativeItem ? -
wrote on 22 May 2012, 17:55 last edited by
Hello,
I think it is posible by using Qt private headers.
-
wrote on 24 May 2012, 07:05 last edited by
But that means rewrite the whole public header...
-
wrote on 25 May 2012, 12:18 last edited by
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. -
wrote on 29 May 2012, 08:18 last edited by
You can extend them on QML
-
wrote on 31 May 2012, 10:50 last edited by
I am not interested in extending via QML. I have to create new item via C++ and add it (register and use) in QML/C++.
-
wrote on 4 Jun 2012, 08:44 last edited by
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.
-
wrote on 4 Jun 2012, 09:25 last edited by
Well, does anybody have a working files, that really works, could anybody leave working example here? ... documentation is quite mean on that...
8/8