Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to display a QWindow in the way as a QQuickItem?

How to display a QWindow in the way as a QQuickItem?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 253 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HoratioH Offline
    HoratioH Offline
    Horatio
    wrote on last edited by Horatio
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved