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. Reimplemented QOpenGLWidget shows under QStackedWidget.
Qt 6.11 is out! See what's new in the release blog

Reimplemented QOpenGLWidget shows under QStackedWidget.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 750 Views 2 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.
  • P Offline
    P Offline
    pcman11
    wrote on last edited by
    #1

    Hi. There's QStackedWidged which stacks QMainWindows, some of them parents reimplementations of QOpenGLWidget, everything shows fine when i try do display them "standalone" , but purpose is to stack window to navigate them next-prev. When I manage those windows by QStackedWidget, whole QMainwindow including parented QOpenGLWidget is dislpayed underneath all rastered content, attributes like ALWAYSSTACKONTOP seems to not work with stacked structure, when I "unparent" opengl content - it shows correctly, but then I must reproduce background because then opengl windows display opacite content, this affects performance , framerate decreases about 10-20% when i reproduce underlaying background of containing QStackedWidget in opengl paingGL() .
    in fact - I found strange solution - it removes consequence but doesnt resolve problem, after showing window with parented qopenglwidgets i provide this code:
    <code>
    QMainWindow* mw=new QMainWindow(currentWidget());
    mw->setFixedSize(1,1);
    mw->showFullScreen();
    update();
    mw->hide();
    mw->deleteLater();
    </code>
    after that window appears on top. The issue appears on Android-compiled, IOS has not this issue. Maybe someone has some experience with that issue?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you show a picture of what you get ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Can you show a picture of what you get ?

        P Offline
        P Offline
        pcman11
        wrote on last edited by
        #3

        @SGaist sorry, but I'm not allowed, it look like ALWAYSSTACKONTOP attribute is rejected, all OPENGL content is stored under all rastered content.. thanks :)

        P 1 Reply Last reply
        0
        • P pcman11

          @SGaist sorry, but I'm not allowed, it look like ALWAYSSTACKONTOP attribute is rejected, all OPENGL content is stored under all rastered content.. thanks :)

          P Offline
          P Offline
          pcman11
          wrote on last edited by
          #4

          @pcman11 said in Reimplemented QOpenGLWidget shows under QStackedWidget.:

          @SGaist sorry, but I'm not allowed, it look like ALWAYSSTACKONTOP attribute is rejected, all OPENGL content is stored under all rastered content.. thanks :)

          it looks like platform-dependent specific issue, because it's only android's problem. i deducted that when last-child is openglwidget problem persists, but if last parented is raster widget-it content appears on top

          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