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

CLONE - Fusion style adds unneeded space for QGroupBoxes without a title

    XMLWordPrintable

Details

    • All
    • 5a032f0b3 (dev), be03e8523 (6.7), 1fdfdb06c (6.6)

    Description

      This is a regression caused by the problem described originally in Bug #44056, which has been closed meanwhile and not been reopened. The original problem does not exist anymore, but has been exchanged for another one, so maybe a new bug should be filed about this.

      The problem is that, if the Fusion style is used on Linux, QGroupBoxes without titles have much more space on top than would be needed. Using Windows or macOS, this does not happen. There, title-less QGroupBoxes are rendered as expected.

      I'll attach (again) a real-life screenshot showing the issue (left one: old wrong rendering before Qt 5.14, right one: new wrong one now) and a minimal example producing it.

      Thanks in advace for (eventually) fixing this!

      Attachments

        1. main.cpp
          2 kB
        2. MainWindow.cpp
          0.6 kB
        3. MainWindow.h
          0.1 kB
        4. qfusionstyle_5_15_2.cpp
          174 kB
        5. qfusionstyle_6_1_2.cpp
          174 kB
        6. qfusionstyle.cpp
          170 kB
        7. screenshot.png
          screenshot.png
          31 kB
        8. test.ui
          1 kB

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              wschenke Winfried Schenke
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes