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

Regression in spinbox PlusMinus symbol rendering

    XMLWordPrintable

Details

    • 8ca2d6ba0 (dev), 47c026bd9 (6.5)

    Description

      The rendering of the button symbols has regressed after the changes made for QTBUG-112019. The screenshot here:

      shows the side-by side comparison between Qt 6.4 and current dev branch. The 6.6 rendering is much worse, with the '+' sign no longer centered and the minus is also worse.

      Example to reproduce is:

      #include <QtWidgets>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
      
          QWidget widget;
          QSpinBox plusMinus;
          plusMinus.setButtonSymbols(QAbstractSpinBox::PlusMinus);
          QSpinBox upDown;
          QVBoxLayout vbox;
      
          vbox.addWidget(&plusMinus);
          vbox.addWidget(&upDown);
          widget.setLayout(&vbox);
      
          widget.show();
          widget.setWindowTitle(QT_VERSION_STR);
          return app.exec();
      }
      

      with the QT_SCALE_FACTOR set to 4 (and since running on macOS, with -style windows command line parameters).

      The second screenshot

      is with a scale factor of 4.25, and there the new code is an improvement.

      Attachments

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

        Activity

          People

            chehrlic Christian Ehrlicher
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes