Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to get EGLNativeWindowType* handle of QWidget (Android)
Forum Updated to NodeBB v4.3 + New Features

How to get EGLNativeWindowType* handle of QWidget (Android)

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.3k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    aclex
    wrote on 21 Jul 2013, 20:49 last edited by
    #1

    I need to display video using GStreamer on one of QWidget's of my application. With Qt on desktop it could be easily done by getting QWidget::winId() and pass it to GStreamer's sink element.

    Now I'm experimenting with shiny new Qt 5.1 on Android and I'm a little bit stuck with getting 'native' window handle of QWidget there. GStreamer requires EGLNativeWindowType* handle which is technically obtained with ANativeWindow_fromSurface() NDK call, but I don't know how to obtain one from QWidget in Qt. I've read somewhere, Qt paints the whole window on single EGL surface, so maybe it's impossible at all.

    So, is there any way to get EGLNativeWindowType* handle of QWidget or any other way to output video to certain widget?

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wisin
      wrote on 11 Jun 2015, 14:59 last edited by
      #2

      Could you say if you found some solution?

      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