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. Frameless dialog on top of fullscreen frameless QGLWidget
Forum Updated to NodeBB v4.3 + New Features

Frameless dialog on top of fullscreen frameless QGLWidget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.2k 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.
  • B Offline
    B Offline
    billconan
    wrote on last edited by
    #1

    I realized that if a QGLWidget is fullscreen and frameless, I can't make another frameless dialog on top of it.

    My application requires an opengl window in fullscreen frameless mode. on top of this opengl window, I want to show another frameless dialog as a toolbar, inside which, there are control buttons.

    everything works, if the opengl window is not fullscreen. as soon as I set the opengl window to fullscreen, it seems to block the toolbar dialog.

    I tried to set toolbar dialog always on top and tried to call raise(). nothing fixes the issue.

    I wonder if this is a limitation of opengl widget.

    btw, I'm using qt5.3.2. I know qt5.4 did some changes to the opengl code. not sure if that will fix the problem.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      billconan
      wrote on last edited by
      #2

      found this on Qt5.4 doc:

      While the API is very similar, there is an important difference between the two: QOpenGLWidget always renders offscreen, using framebuffer objects. QGLWidget on the other hand uses a native window and surface. The latter causes issues when using it in complex user interfaces since, depending on the platform, such native child widgets may have various limitations, regarding stacking orders for example. QOpenGLWidget avoids this by not creating a separate native window.

      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