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

too wide size hint of QDoubleSpinBox when setting to mode "NoButtons"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.0 Alpha
    • 5.9.4, 5.10.1, 5.11.0 Beta 2
    • Widgets: Layout
    • None
    • Tested on Windows and observed on Linux
    • 6e8ac905397bf3067631c495e568471b4f908f37

    Description

      When configuring a QDoubleSpinBox (or QSpinBox) not to have buttonSymbols the SizeHint stays the same as if these buttons are still present. So at the right (or left) of such a SpinBox there will be always unused white space.

      Expected behavior would be that the layout of the SpinBox will shrink horizontally by the width of the (now not present) buttons.

      Attachments

        1. Qt_Bug.jpg
          Qt_Bug.jpg
          16 kB
        2. qtbug_67126.tgz
          1 kB
        3. qtbug67126.zip
          2 kB

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              etlam Eltam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes