Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76354

QMainWindow::showMinimized() doesn't work on Ubuntu 18.04

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.2, 5.12.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 18.04
    • Platform/s:
      Linux/X11

      Description

      Showing a GUI application with `showMinmized()` doesn't work on Ubuntu 18.04 and the window is displayed on the screen as if I started it with `showNormal()`.
      Note that it works fine on Ubuntu 16.04.

      I found that if I execute `mainWindow->showNormal(); mainWindow->sesWindowState(Qt::WindowMinimized);` the window is minimized.

      Steps to reproduce this issue:

      • open the "Main Window" example
      • change `mainWin.show();` in `main.cpp` with `mainWin.showMinimized()`
      • recompile and run
        -> the window is visible at start

        Attachments

        1. main.cpp
          3 kB
        2. mainwindow.cpp
          0.2 kB
        3. mainwindow.h
          3 kB
        4. mainwindow.pro
          0.3 kB
        5. mainwindow.pro.user
          24 kB
        6. mainwindow.qrc
          0.2 kB
        For Gerrit Dashboard: QTBUG-76354
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              paeglis Gatis Paeglis
              Reporter:
              spedrazzi Stefania Pedrazzi
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes