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

spinbox up/down buttons not hidding correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8.1
    • None

      I'm using a spinbox of which I want to hide the up/down buttons. So I use this NoButtons symbol as follow :

       
      distanceBox->setButtonSymbols(QAbstractSpinBox::NoButtons);

       
      The buttons seems hidden, but their layout is still here. I mean the space they should occupy is still here. And so the text appear truncated even though the box is big enough. See my text on the picture which should be '116.96 mm'.

       

      Expected behavior: the layout of the button is removed, so that the text can expand on the whole box.

        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
            paddle Pierre B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes