Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.2
-
None
-
8c4dee6f97 (qt/qtbase/dev) 8c4dee6f97 (qt/tqtc-qtbase/dev) 2c9c37d35e (qt/qtbase/6.3) 2c9c37d35e (qt/tqtc-qtbase/6.3) f35a83537b (qt/qtbase/6.2) f35a83537b (qt/tqtc-qtbase/6.2) 316a01c33c (qt/tqtc-qtbase/5.15)
Description
When creating a QSpinBox or a QDoubleSpinbox with the Fusion style set one of the widgets with buttons, an extra dot appears in the top left corner of the widget - the dot can be seen on this image
The windows can be reproduced with this code
#include <QApplication> #include <QWidget> #include <QMainWindow> #include <QVBoxLayout> #include <QSpinBox> #include <QDoubleSpinBox> #include <QAbstractSpinBox> class Window: public QMainWindow { public: Window(): widget(new QWidget()) { this->setCentralWidget(widget); layout = new QVBoxLayout(widget); spinbox = new QSpinBox(widget); spinbox->setButtonSymbols(QAbstractSpinBox::ButtonSymbols::NoButtons); layout->addWidget(spinbox); dspinbox = new QDoubleSpinBox(widget); dspinbox->setButtonSymbols(QAbstractSpinBox::ButtonSymbols::NoButtons); layout->addWidget(dspinbox); } private: QWidget* widget; QVBoxLayout* layout; QSpinBox* spinbox; QDoubleSpinBox* dspinbox; }; int main(int argc, char *argv[]) { QApplication a(argc, argv); Window w; w.show(); a.setStyle("Fusion"); return a.exec(); }