How to display a QWindow in the way as a QQuickItem?
Unsolved
QML and Qt Quick
-
I have an Android App holding a Surface (android.view.Surface).
I plan to call ANativeWindow_fromSurface() on it to get a native window handle (ANativeWindow/EGLNativeWindowType).
I assume this is the native window handle that I can use to create a QWindow via the function below.[QWindow *QWindow::fromWinId(WId id)](https://doc.qt.io/qt-6/qwindow.html#fromWinId)
So, I assume I can build a QWindow from the android.view.Surface, but how can I display it like displaying a QQuickItem?
My Android App already has its own QQuickView and many QML files. I want to show this QWindow in certain area within my App, just like a QQuickItem.
Can someone help me? Thank you.