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

Extra dot appears in top left corner of Fusion style spin box frames with no buttons

    XMLWordPrintable

Details

    • 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();
      }

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            numerlor Michal Laboš
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews