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. Open QDialog on top of fullscreen QWindow

Open QDialog on top of fullscreen QWindow

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

    Hi guys,

    We have an application that let's users play a game on a QWindow.
    Sometimes we spawn a modal QDialog on top of that window to get input or just show a progressbar.

    The problem is that several users are complaining about those dialogs not showing up on top of the game in fullscreen mode.
    Sadly I can't reproduce this issue and so far it has (to my knowledge) only happened with Nvidia GPUs.

    I tried parenting the dialog to the gamewindow and also the windowflag WindowStaysOnTopHint.
    Another try was to set the dialog's screen to the gamewindow screen.

    Any ideas how to fix this? Or is this really something caused by Nvidia drivers?

    Edit:
    Also on multimonitor setups the dialogs seem to spawn on second screen in case the gamewindow was set to fullscreen on the primary screen.

    Thx, Megamouse

    raven-worxR 1 Reply Last reply
    0
    • MegamouseM Megamouse

      Hi guys,

      We have an application that let's users play a game on a QWindow.
      Sometimes we spawn a modal QDialog on top of that window to get input or just show a progressbar.

      The problem is that several users are complaining about those dialogs not showing up on top of the game in fullscreen mode.
      Sadly I can't reproduce this issue and so far it has (to my knowledge) only happened with Nvidia GPUs.

      I tried parenting the dialog to the gamewindow and also the windowflag WindowStaysOnTopHint.
      Another try was to set the dialog's screen to the gamewindow screen.

      Any ideas how to fix this? Or is this really something caused by Nvidia drivers?

      Edit:
      Also on multimonitor setups the dialogs seem to spawn on second screen in case the gamewindow was set to fullscreen on the primary screen.

      Thx, Megamouse

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Megamouse
      how do you spawn the QDialog exactly?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      MegamouseM 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @Megamouse
        how do you spawn the QDialog exactly?

        MegamouseM Offline
        MegamouseM Offline
        Megamouse
        wrote on last edited by
        #3

        @raven-worx we just show() it and wait for the result callback on the game thread.
        On my system it opens the dialog centre screen on top of everything like you would expect.
        We have the same issue with all similar other dialogs as well. But they also work as expected on my system

        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