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

SpinBox height wrong when using a stylesheet

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

        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.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes