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

Why QDoubleSpinBox are larger than QSpinBox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Widgets: Layout
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      If you create a widegt with many QSpinBox or QDoubleSpinBox in a horizontal layout, you'll notice that QDoubleSpinBox's minimal width are way bigger than QSpinBox's. So that it makes your GUI very large if you add many of them.

      In the code, QSpinBoxPrivate calls setLayoutItemMargins(QStyle::SE_SpinBoxLayoutItem) while QDoubleSpinBoxPrivate does not. That may be the cause of the problem.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            jpo38 Jean Porcherot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes