Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSpinBoxes take too much vertical space if an application-wide style sheet is set
Forum Updated to NodeBB v4.3 + New Features

QSpinBoxes take too much vertical space if an application-wide style sheet is set

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 254 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • l3u_L Offline
    l3u_L Offline
    l3u_
    wrote on last edited by l3u_
    #1

    Hi all,

    I noticed a quite weird bug: If I set an application-wide style sheet, all QSpinBoxes take too much vertical space. It doesn't matter what the style sheet contains.

    Without an application-wide style sheet, a QLineEdit and a QSpinBox have the same height:
    breeze_no_css.png

    But after setting an application-wide style sheet (in this case a completely unrelated QGroupBox { font-weight: bold; }), the QSpinBox is rendered too high:
    breeze_with_css.png

    This seems to be a KDE Breeze bug, as it does not happen when using Fusion. I filed a respective KDE bug already (also containing a minimal example for reproducing the issue).

    The interesting part is: It seems only to happen using Qt 6.8.2, and not yet if 6.8.1 is used. At least, I didn't see this on my Gentoo machine running 6.8.1, but on my Artix notebook running 6.8.2 – but not on another Artix machine still on 6.8.1.

    I'd like to not only complain about this, but to help fixing it. Can somebody of the pros give me a hint which change in Qt may have caused this? I have no idea where I should start to search …

    Thanks in advance for all help!

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I would say it's because of https://codereview.qt-project.org/c/qt/qtbase/+/601315 and https://codereview.qt-project.org/c/qt/qtbase/+/613831
      Maybe breeze had some kind of workaround for this which is now doing wrong calculations.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • l3u_L Offline
        l3u_L Offline
        l3u_
        wrote on last edited by
        #3

        Thanks a lot for the quick follow-up! I'll provide this info in the KDE bug.

        Hopefully, we'll get that fixed soon …

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved