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.7k 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote on last edited by Andy314
    #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.

    jsulmJ 1 Reply Last reply
    0
    • Andy314A Andy314

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      Andy314A 1 Reply Last reply
      0
      • jsulmJ jsulm

        @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

        Andy314A Offline
        Andy314A Offline
        Andy314
        wrote on 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.

        jsulmJ 1 Reply Last reply
        0
        • Andy314A Andy314

          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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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

          Andy314A 1 Reply Last reply
          0
          • B Offline
            B Offline
            Bonnie
            wrote on last edited by Bonnie
            #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.

            Andy314A 1 Reply Last reply
            3
            • jsulmJ jsulm

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

              Andy314A Offline
              Andy314A Offline
              Andy314
              wrote on 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

                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.

                Andy314A Offline
                Andy314A Offline
                Andy314
                wrote on last edited by Andy314
                #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
                0
                • Andy314A Andy314

                  @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 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

                  • Login

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