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. Widget over the QVulkanWindow
Forum Updated to NodeBB v4.3 + New Features

Widget over the QVulkanWindow

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 226 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.
  • M Offline
    M Offline
    markovvv
    wrote on last edited by
    #1

    Hey guys, iam creating game with Vulkan. Iam embedding QVulkanWindow in MainWindow like this:

        QWidget *container = QWidget::createWindowContainer(vw);
        mw.ui->gamePanelLayout->addWidget(container);
    

    I want to have little widget over the QVulkanWindow, where will be pause and end button. Problem is, that container widget, created by function QWidget::createWindowContainer() will be always on top.
    Documentation says: Stacking order; The embedded window will stack on top of the widget hierarchy as an opaque box.

    I tried for example QStackedLayout, but nothing works out. Is there any way how to do it? Thanks!

    Chris KawaC 1 Reply Last reply
    0
    • M markovvv

      Hey guys, iam creating game with Vulkan. Iam embedding QVulkanWindow in MainWindow like this:

          QWidget *container = QWidget::createWindowContainer(vw);
          mw.ui->gamePanelLayout->addWidget(container);
      

      I want to have little widget over the QVulkanWindow, where will be pause and end button. Problem is, that container widget, created by function QWidget::createWindowContainer() will be always on top.
      Documentation says: Stacking order; The embedded window will stack on top of the widget hierarchy as an opaque box.

      I tried for example QStackedLayout, but nothing works out. Is there any way how to do it? Thanks!

      Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      Documentation says: Stacking order; The embedded window will stack on top of the widget hierarchy as an opaque box.

      As the documentation says it won't work with any layouts or such. Qt draws all its widgets on a window surface and Vulkan draws on another surface that is layered on top. If you want to have something else above that you need another window (frameless and transparent probably).

      1 Reply Last reply
      1

      • Login

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