Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5, dev
-
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.