Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Use qt/qml widget as android.view.View
seniorivn last edited by seniorivn
I need to return android.view.View in java code, that will be contain Qt/qml item, so i thought that i will return QtActivity, but it extends android.app.Activity and not extends android.view.View.
So, how can i create android.view.View with Qt/qml widget?
I stil have hope that someone will help me.
But i've found theoretically working way to do that(show qt/qml as android.view.View):
implement onDraw(): that will get bitmap from cpp code.
in cpp code get bitmap from application window grabWindow().
So it will show qt/qml window as it is.
But there is need to send touch events to it.
may be to implement touch events in this case i need to use https://doc.qt.io/qt-5/qtest-qtoucheventsequence.html to convert android touch events to qt touch events, but hope that already done by qt extras and i just didn't find it.
Tusovshik last edited by
Wow, thanks for your links. Really helpful.
@Tusovshik are you trying to do the same thing?