Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Issues using Qt3D in QWidget on Android
QtWS25 Last Chance

Issues using Qt3D in QWidget on Android

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.1k 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.
  • H Offline
    H Offline
    HoTiX
    wrote on last edited by
    #1

    I currently have a working Qt application deployable to Desktops and Android which uses QOpenGLWidget for 3D rendering inside a QMainWindow. In a move to simplify the 3D rendering pipeline, I tried to move away from low-level OpenGL rendering to Qt 3D. The switch was pretty smooth for Desktops, but I am having issues when rendering Qt 3D on Android.

    Currently, I followed the basicshape c++ example to create a window container (QWidget::createWindowContainer) in order to embed a Qt3dWindow into a QWidget in order to use it in a QStackedWidget. This example is unsupported for Android, which might explains why nothing in rendered. In both my application and basicshape example, nothing is rendered in the QWidget on Android (it works fine on Desktop).

    Is there any workaround this issues for Android ?

    Z 1 Reply Last reply
    0
    • H HoTiX

      I currently have a working Qt application deployable to Desktops and Android which uses QOpenGLWidget for 3D rendering inside a QMainWindow. In a move to simplify the 3D rendering pipeline, I tried to move away from low-level OpenGL rendering to Qt 3D. The switch was pretty smooth for Desktops, but I am having issues when rendering Qt 3D on Android.

      Currently, I followed the basicshape c++ example to create a window container (QWidget::createWindowContainer) in order to embed a Qt3dWindow into a QWidget in order to use it in a QStackedWidget. This example is unsupported for Android, which might explains why nothing in rendered. In both my application and basicshape example, nothing is rendered in the QWidget on Android (it works fine on Desktop).

      Is there any workaround this issues for Android ?

      Z Offline
      Z Offline
      zhujia
      wrote on last edited by
      #2

      @HoTiX hi,I met the same question ,do you slove it ? or mybe it a bug for qt3d for android

      1 Reply Last reply
      0
      • H Offline
        H Offline
        HoTiX
        wrote on last edited by
        #3

        @zhujia, I have not found a solution for windowing a Qt3dWindow into QWidget. I don't know if this is a bug for qt3d but it seems this might be a known issue but a pretty hard one to solve since Android does not have any windowing scheme. Right now, I am using a Qt3dWindow directly without embedding it into a QWidget but overlapping QWidget on top and it works pretty good. I would still very enjoy to be able to embed it in order to reduce the burden of having a complete new application just for Android.

        Z 1 Reply Last reply
        0
        • H HoTiX

          @zhujia, I have not found a solution for windowing a Qt3dWindow into QWidget. I don't know if this is a bug for qt3d but it seems this might be a known issue but a pretty hard one to solve since Android does not have any windowing scheme. Right now, I am using a Qt3dWindow directly without embedding it into a QWidget but overlapping QWidget on top and it works pretty good. I would still very enjoy to be able to embed it in order to reduce the burden of having a complete new application just for Android.

          Z Offline
          Z Offline
          zhujia
          wrote on last edited by
          #4

          @HoTiX "Right now, I am using a Qt3dWindow directly without embedding it into a QWidget but overlapping QWidget on top and it works pretty good. "how to do it ?
          can you give some code for me to reference.Because I have done some tests,when the QWidget and Qt3dWindow were used in the same window,the Qt3dwindows always at the bottom layer.

          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