Android NativeUI components in QML
-
wrote on 7 Aug 2017, 15:39 last edited by
Is it possible to wrap android.view.View in a QWidget or somehow use it in QML with other QT components?
Just call a java method is not enough for my purpose.
I see it is possible for iOS, but i can't find alternative for android. -
Is it possible to wrap android.view.View in a QWidget or somehow use it in QML with other QT components?
Just call a java method is not enough for my purpose.
I see it is possible for iOS, but i can't find alternative for android.@Stellarsctipt
not directly. The QtWebView module just overlays the native view over the QML scene and forwards some properties/calls from QML to the native view.
See it's source and use the same principle. -
wrote on 9 Aug 2017, 08:18 last edited by
Thank you @raven-worx. I did't know how the framework works when I asked the question. I thought the qt components are wrappers around the native components.
-
wrote on 28 Aug 2017, 13:33 last edited by
You can check this repo - https://github.com/2gis/qtandroidextensions - it has native android widgets wrapped as QML objects