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. How to put QWidget objects on top of a QWindow?
Forum Updated to NodeBB v4.3 + New Features

How to put QWidget objects on top of a QWindow?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 283 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello there,
    I want to put an QWidget object with some QPusbutton objects as a control panel on top of an QWindow object with OpenGL context rendered. However, I found that the QWidget objects can't display. It seems that they are always "covered" beneath the OpenGL context. Is there any work around where I can put QWidget objects above the QWindow?

    I have tried QWidget::createWindowContainer() but no luck.

    JoeCFDJ 1 Reply Last reply
    0
    • ? A Former User

      Hello there,
      I want to put an QWidget object with some QPusbutton objects as a control panel on top of an QWindow object with OpenGL context rendered. However, I found that the QWidget objects can't display. It seems that they are always "covered" beneath the OpenGL context. Is there any work around where I can put QWidget objects above the QWindow?

      I have tried QWidget::createWindowContainer() but no luck.

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      @YTRoy https://forum.qt.io/topic/143991/is-it-possible-to-add-gui-for-qopenglwindow-the-button-should-be-in-the-center-of-the-opengl-canvas/35?_=1681742116504

      ? 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @YTRoy https://forum.qt.io/topic/143991/is-it-possible-to-add-gui-for-qopenglwindow-the-button-should-be-in-the-center-of-the-opengl-canvas/35?_=1681742116504

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @JoeCFD I can only use QWindow, so the soluton inside the link doesn't apply. Thanks.

        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