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. Showing a QDialog while running a fullscreen application shows window decoration around the application under Linux.
QtWS25 Last Chance

Showing a QDialog while running a fullscreen application shows window decoration around the application under Linux.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 2.6k Views
  • 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
    Peer Schneider
    wrote on last edited by
    #1

    I have a Qt application which consists of a window (a custom type derived from QGraphicsView). This window is shown in full screen.
    Occasionally I show a dialogue (QDialog or derived from it). While showing the dialogue (which has as parent the window) the title bar of the window is shown together with the systems task bar. Closing the dialogue the title bar and task bar disappear again.

    Note: I am running the application under Ubuntu (16.04) using Unity.

    Does anyone know why this happens and how this can be avoided?

    Thanks,
    Peer

    1 Reply Last reply
    0
    • kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      Try using a native widget (i.e. don't give the dialog a parent), it probably is a window manager specific. Also if you could try on a another platform might shed some light if it's constrained to unity only.

      Read and abide by the Qt Code of Conduct

      P 1 Reply Last reply
      2
      • kshegunovK kshegunov

        Try using a native widget (i.e. don't give the dialog a parent), it probably is a window manager specific. Also if you could try on a another platform might shed some light if it's constrained to unity only.

        P Offline
        P Offline
        Peer Schneider
        wrote on last edited by
        #3

        @kshegunov The problem does not appear on Windows 10. So it may be Linux specific or even Unity specific. As I only have Windows 10 and Ubuntu with Unity here I can not do any other test. Changing from QDialog to QWidget and removing the parent does not solve the problem.

        What I now saw is that when moving the dialogue away from the window where the full screen application is to my other monitor (I am having a multi monitor setup) then the title disappears and everything is fine. Moving it back above the full screen app the title appears again :/

        kshegunovK 1 Reply Last reply
        0
        • P Peer Schneider

          @kshegunov The problem does not appear on Windows 10. So it may be Linux specific or even Unity specific. As I only have Windows 10 and Ubuntu with Unity here I can not do any other test. Changing from QDialog to QWidget and removing the parent does not solve the problem.

          What I now saw is that when moving the dialogue away from the window where the full screen application is to my other monitor (I am having a multi monitor setup) then the title disappears and everything is fine. Moving it back above the full screen app the title appears again :/

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          @Peer-Schneider said in Showing a QDialog while running a fullscreen application shows window decoration around the application under Linux.:

          Changing from QDialog to QWidget and removing the parent does not solve the problem.

          I meant only giving nullptr as parent of the dialog (as dialogs are already widgets), but in any case this shouldn't change the results of the test. Anyway, if you could prepare a very simple reproducible example I could test on my KDE. I'd speculate, however, that this is some Unity peculiarity as you report it doesn't happen on windows.

          Read and abide by the Qt Code of Conduct

          mrjjM 1 Reply Last reply
          2
          • kshegunovK kshegunov

            @Peer-Schneider said in Showing a QDialog while running a fullscreen application shows window decoration around the application under Linux.:

            Changing from QDialog to QWidget and removing the parent does not solve the problem.

            I meant only giving nullptr as parent of the dialog (as dialogs are already widgets), but in any case this shouldn't change the results of the test. Anyway, if you could prepare a very simple reproducible example I could test on my KDE. I'd speculate, however, that this is some Unity peculiarity as you report it doesn't happen on windows.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5
            • Ubuntu with Unity here I can not do any other test.
              If a virtual machine, it would be very fast to install say KDE or xfce to test with.
              That is the charm of linux. Freedom. :)
            1 Reply Last reply
            3
            • P Offline
              P Offline
              Peer Schneider
              wrote on last edited by
              #6

              @kshegunov I tested both, removing its parent and changing it to QWidget (and there also make it non-modal), no change as I wrote. Yeah, I think, too, that this has something to do with Unity. I will put a test on another window manager on my todo list. I will see whether I find the time to quickly create a small test app later.

              @mrjj With VirtualBox this is luckily not a problem, this is true. Only problem here is the sloooow internet connection so I can't quickly install one, it takes some planning ;)

              Thanks both of you!

              1 Reply Last reply
              2

              • Login

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