Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1752

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.2.2
    • PySide
    • None

    Description

      When creating a QSpinBox or a QDoubleSpinbox with the Fusion style set on the widget and no buttons, an extra dot appears in the top left corner of the widget - the dot can be seen on this image

       

      The window can be reproduced with the below PySide6 code

      from PySide6 import QtWidgets
      from __feature__ import snake_case, true_property
      
      class Window(QtWidgets.QMainWindow):
          def __init__(self):
              super().__init__()
      
              self.widget = QtWidgets.QWidget()
              self.set_central_widget(self.widget)
              self.layout_ = QtWidgets.QVBoxLayout(self.widget)
      
              spinbox = QtWidgets.QSpinBox(self.widget)
              spinbox.button_symbols = QtWidgets.QAbstractSpinBox.ButtonSymbols.NoButtons
              self.layout_.add_widget(spinbox)
      
              dspinbox = QtWidgets.QDoubleSpinBox(self.widget)
              dspinbox.button_symbols = QtWidgets.QAbstractSpinBox.ButtonSymbols.NoButtons
              self.layout_.add_widget(dspinbox)
      
      app = QtWidgets.QApplication()
      app.set_style("Fusion")
      window = Window()
      window.show()
      app.exec()
      

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            numerlor Michal Laboš
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes