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. Qt::WindowFullScreen - window under taskbar in MS-Windows
Forum Updated to NodeBB v4.3 + New Features

Qt::WindowFullScreen - window under taskbar in MS-Windows

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 1.6k 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.
  • A Offline
    A Offline
    Andy314
    wrote on 9 Nov 2020, 08:28 last edited by Andy314 11 Sept 2020, 16:48
    #1

    Hello,
    I must bring the problem with a new topic on top once again.
    Here is the minimal code to reproduce the error:

    void MainWindow::on_pushButton_clicked()
    {
        QDialog *dlg=new QDialog;
        dlg->setWindowState(Qt::WindowFullScreen);
        dlg->show();
    }
    

    I have check it with the latest Qt Version. 5.15.1 MSVC19-32 bit.
    (Windows 10 - 2004-64 - but error is in earlier version too.)

    The window gets full screen size but it is under the taskbar !

    In Qt 5.6.0 MSVC15-32 bit it works - the Taskbar is hidden by the window.

    It is very important for me, this behavior kills my app for my customer in the pure tablet enviroment.

    J 1 Reply Last reply 9 Nov 2020, 08:36
    0
    • A Andy314
      9 Nov 2020, 08:28

      Hello,
      I must bring the problem with a new topic on top once again.
      Here is the minimal code to reproduce the error:

      void MainWindow::on_pushButton_clicked()
      {
          QDialog *dlg=new QDialog;
          dlg->setWindowState(Qt::WindowFullScreen);
          dlg->show();
      }
      

      I have check it with the latest Qt Version. 5.15.1 MSVC19-32 bit.
      (Windows 10 - 2004-64 - but error is in earlier version too.)

      The window gets full screen size but it is under the taskbar !

      In Qt 5.6.0 MSVC15-32 bit it works - the Taskbar is hidden by the window.

      It is very important for me, this behavior kills my app for my customer in the pure tablet enviroment.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 9 Nov 2020, 08:36 last edited by
      #2

      @Andy314 said in Qt::WindowFullScreen - window under taskbar in MS-Windows:

      dlg->setWindowState(Qt::WindowFullScreen);

      It should be

      dlg->setWindowState(dlg->windowState() ^ Qt::WindowFullScreen);
      

      as shown in https://doc.qt.io/qt-5/qwidget.html#setWindowState

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply 9 Nov 2020, 08:45
      0
      • J jsulm
        9 Nov 2020, 08:36

        @Andy314 said in Qt::WindowFullScreen - window under taskbar in MS-Windows:

        dlg->setWindowState(Qt::WindowFullScreen);

        It should be

        dlg->setWindowState(dlg->windowState() ^ Qt::WindowFullScreen);
        

        as shown in https://doc.qt.io/qt-5/qwidget.html#setWindowState

        A Offline
        A Offline
        Andy314
        wrote on 9 Nov 2020, 08:45 last edited by
        #3

        It should be

        dlg->setWindowState(dlg->windowState() ^ Qt::WindowFullScreen);
        

        as shown in https://doc.qt.io/qt-5/qwidget.html#setWindowState

        Thank you very much for this tip. Nevertheless with this correction I get the same effect as before.

        J 1 Reply Last reply 9 Nov 2020, 08:48
        0
        • A Andy314
          9 Nov 2020, 08:45

          It should be

          dlg->setWindowState(dlg->windowState() ^ Qt::WindowFullScreen);
          

          as shown in https://doc.qt.io/qt-5/qwidget.html#setWindowState

          Thank you very much for this tip. Nevertheless with this correction I get the same effect as before.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 9 Nov 2020, 08:48 last edited by
          #4

          @Andy314 Did you check in Qt bug tracker whether this is a known but not yet fixed issue?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply 9 Nov 2020, 10:28
          0
          • B Offline
            B Offline
            Bonnie
            wrote on 9 Nov 2020, 08:57 last edited by Bonnie 11 Sept 2020, 09:22
            #5

            Is it ok for you to add StaysOnTop hint? like

            dlg->setWindowFlags(dlg->windowFlags() | Qt::WindowStaysOnTopHint);
            

            QDialog does act very weirdly when showing full screen.
            You may consider using a normal QWidget if it is not required to using QDialog.

            A 1 Reply Last reply 9 Nov 2020, 10:34
            3
            • J jsulm
              9 Nov 2020, 08:48

              @Andy314 Did you check in Qt bug tracker whether this is a known but not yet fixed issue?

              A Offline
              A Offline
              Andy314
              wrote on 9 Nov 2020, 10:28 last edited by
              #6

              @jsulm said in Qt::WindowFullScreen - window under taskbar in MS-Windows:

              @Andy314 Did you check in Qt bug tracker whether this is a known but not yet fixed issue?

              I found no matching article in th bug tracker.

              1 Reply Last reply
              0
              • B Bonnie
                9 Nov 2020, 08:57

                Is it ok for you to add StaysOnTop hint? like

                dlg->setWindowFlags(dlg->windowFlags() | Qt::WindowStaysOnTopHint);
                

                QDialog does act very weirdly when showing full screen.
                You may consider using a normal QWidget if it is not required to using QDialog.

                A Offline
                A Offline
                Andy314
                wrote on 9 Nov 2020, 10:34 last edited by Andy314 11 Sept 2020, 16:42
                #7

                @Bonnie said in Qt::WindowFullScreen - window under taskbar in MS-Windows:

                Is it ok for you to add StaysOnTop hint? like

                dlg->setWindowFlags(dlg->windowFlags() | Qt::WindowStaysOnTopHint);
                

                QDialog does act very weirdly when showing full screen.
                You may consider using a normal QWidget if it is not required to using QDialog.

                Indeed it works ! Its good for me - thank you very much for this hint.
                (I made experiments with Qt::Popup before, but this gave problems with the visibility of the virtual keyboard.)
                Its an interesting way to use a QWidget. Unfortunately I made a BaseClass derived for QDialog with my standard tasks in it. Second I use the same Dialog in the desktop enviroment in a MDI-windows.

                Pablo J. RoginaP 1 Reply Last reply 9 Nov 2020, 13:52
                0
                • A Andy314
                  9 Nov 2020, 10:34

                  @Bonnie said in Qt::WindowFullScreen - window under taskbar in MS-Windows:

                  Is it ok for you to add StaysOnTop hint? like

                  dlg->setWindowFlags(dlg->windowFlags() | Qt::WindowStaysOnTopHint);
                  

                  QDialog does act very weirdly when showing full screen.
                  You may consider using a normal QWidget if it is not required to using QDialog.

                  Indeed it works ! Its good for me - thank you very much for this hint.
                  (I made experiments with Qt::Popup before, but this gave problems with the visibility of the virtual keyboard.)
                  Its an interesting way to use a QWidget. Unfortunately I made a BaseClass derived for QDialog with my standard tasks in it. Second I use the same Dialog in the desktop enviroment in a MDI-windows.

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on 9 Nov 2020, 13:52 last edited by
                  #8

                  @Andy314 said in Qt::WindowFullScreen - window under taskbar in MS-Windows:

                  Indeed it works !

                  is your issue solved? if so, please don't forget to mark your post as such! Thanks.

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  0

                  1/8

                  9 Nov 2020, 08:28

                  • Login

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