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. Android: draw qml in SurfaceView with ZOrderMediaOverlay
Servers for Qt installer are currently down

Android: draw qml in SurfaceView with ZOrderMediaOverlay

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 832 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.
  • Q Offline
    Q Offline
    qvirol
    wrote on 28 Sept 2016, 16:49 last edited by
    #1

    Hi all,

    I have an application on android with a QQuickView with transparent background which draw some qml and a pure android SurfaceView which is supposed to display a video in background.

    At startup, everything is good. My video is playing in background and my qml components are displayed in foreground.

    My problem is when my activity is paused then resume, every time the video is displayed on top from my qml.
    After research I think it's because the SurfaceView created by Qt to display the qml and my SurfaceView created to display the video are in the same "z area". So the render order is undefined.

    I would like move the Qt SurfaceView to the ZOrderMediaOverlay area by setting the ZOrderMediaOverlay to true but I have to set it at SurfaceView creation.

    Is there a way to set my z order directly from c++ when I create my QQuickView ?
    Or is there another way ?

    I have a custom activity which inherits from QtActivity, but the SurfaceView is not created yet in the onCreate function.
    I can access to the Qt SurfaceView when I create my SurfaceView for video but the Qt's one is already created and set the ZOrderMediaOverlay has no effect.

    Thanks a lot for your help :)

    1 Reply Last reply
    0

    1/1

    28 Sept 2016, 16:49

    • Login

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