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

Status bar rendered "inactive" after launching QMainWindow app (macOS)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.2.0
    • 5.15.5
    • None
    • macOS

    Description

      When launching a QWidget based (QMainWindow) application with a QStatusBar the status bar is rendered as if "inactive". As soon as a status message is printed the background colour under the rendered text turns from light-grey ("inactive") to a darker grey ("active"), but only starting from where the text rendering begins, leaving a "graphical glitch" at the bottom left (where parts of the status bar still remain light-grey/inactive).

      Resizing the window helps restoring the status bar rendering.

      Sometimes (when launching the application from within Qt Creator, closing it and immediatelly re-starting it) the entire QMainWindow appears "inactive" right after launching the app, that is the title bar including the window buttons (close, maximise) is rendered "inactive", too.

      Clicking into the QMainWindow area doesn't help in this case, nor does resizing the window help: the title bar remains inactive (and so does the status bar). If that happens the only thing which helps is to switch to another application (CMD + TAB) and switch back: the title bar becomes "active" again, but the status bar still doesn't - until the window is resized again.

      Attachments

        1. Bildschirmfoto 2020-11-27 um 10.42.11.png
          220 kB
          Oliver Knoll
        2. Bildschirmfoto 2020-11-27 um 10.42.14.png
          226 kB
          Oliver Knoll
        3. Bildschirmfoto 2020-11-27 um 10.54.19.png
          184 kB
          Oliver Knoll
        4. Bildschirmfoto 2020-11-27 um 10.54.49.png
          230 kB
          Oliver Knoll
        5. Bildschirmfoto 2020-11-27 um 11.06.33.png
          259 kB
          Oliver Knoll
        6. Both Title and Status Bar rendered inactive.png
          25 kB
          Oliver Knoll
        7. FiftyShadesOfStatusBar.zip
          6 kB
          Oliver Knoll
        8. Only Status Bar rendered inactive.png
          33 kB
          Oliver Knoll
        9. Visual Glitch after Showing Status Message.png
          41 kB
          Oliver Knoll
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            till213 Oliver Knoll
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes