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

SpinBox height wrong when using a stylesheet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.2.1
    • Widgets: Style Sheets
    • None
    • Windows 7, VS 2010

      See attached some example.
      When setting a stylesheet on a dialog/widget, all spinbox height are wrong (see screenshot, the top arrow are cut).

      It comes from qstylesheet.cpp:4874, which returns the same size passed in parameter if the lineedit is inside a spinbox.
      Whereas without stylesheet, it's using the theme size (which extend the height slightly).

        1. 2014-04-23 15_56_21-stylesheet-bug.png
          2014-04-23 15_56_21-stylesheet-bug.png
          2 kB
        2. image-2019-02-03-04-52-36-193.png
          image-2019-02-03-04-52-36-193.png
          1 kB
        3. main.cpp
          0.9 kB
        4. main.cpp
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            narnaud Nicolas Arnaud-Cormos
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes