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

Why QDoubleSpinBox are larger than QSpinBox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.0
    • Widgets: Layout
    • None
    • Windows

      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.

        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
            jpo38 Jean Porcherot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes