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

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

XMLWordPrintable

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

      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!

        1. MainWindow.cpp
          0.6 kB
          Winfried Schenke
        2. MainWindow.h
          0.1 kB
          Winfried Schenke
        3. qfusionstyle.cpp
          170 kB
          Winfried Schenke
        4. qfusionstyle_5_15_2.cpp
          174 kB
          Winfried Schenke
        5. screenshot.png
          31 kB
          Winfried Schenke
        6. test.ui
          1 kB
          Winfried Schenke
        7. qfusionstyle_6_1_2.cpp
          174 kB
          Winfried Schenke
        8. main.cpp
          2 kB
          Christian Ehrlicher
        For Gerrit Dashboard: QTBUG-95472
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes