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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.2, 5.12.3, 5.13.1, 5.14.0
    • 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
        7. xtrace-gnomeshell-log.tar.gz
          37 kB
        8. xtrace-unity-log.tar.gz
          36 kB

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                liaqi Liang Qi
                Reporter:
                spedrazzi Stefania Pedrazzi
              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes