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

Fusion style adds unneeded space for QGroupBoxes without a title on Linux

XMLWordPrintable

    • Linux/X11
    • 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. screenshot.png
          screenshot.png
          31 kB
        2. MainWindow.h
          0.1 kB
        3. MainWindow.cpp
          0.6 kB
        4. qfusionstyle.cpp
          170 kB
        5. test.ui
          1 kB
        6. qfusionstyle_5_15_2.cpp
          174 kB
        For Gerrit Dashboard: QTBUG-85425
        # Subject Branch Project Status CR V

            tpochep Timur Pocheptsov
            l3u Tobias Leupold
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes