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

Why QDoubleSpinBox are larger than QSpinBox

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.0
    • Widgets: Layout
    • None
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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