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: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11.2, 5.12.3, 5.13.1, 5.14.0
    • Fix Version/s: 5.12, 5.14
    • Labels:
      None
    • Environment:
      Ubuntu 18.04
    • Platform/s:
      Linux/X11
    • Commits:
      4f370d36ec5caa02f78545ceee5704d94edf0530(5.14) 283d9b01dc3ab6c95c688b0e5f5c98c41ca22d30(5.12)

      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. gtk.xtrace.tar.gz
          22 kB
        2. gtk-simple.c
          0.3 kB
        3. main.cpp
          3 kB
        4. mainwindow.cpp
          0.2 kB
        5. mainwindow.h
          3 kB
        6. mainwindow.pro
          0.3 kB
        7. mainwindow.pro.user
          24 kB
        8. mainwindow.qrc
          0.2 kB
        9. xtrace-gnomeshell-log.tar.gz
          37 kB
        10. xtrace-unity-log.tar.gz
          36 kB

          Issue Links

          For Gerrit Dashboard: QTBUG-76354
          # Subject Branch Project Status CR V

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes