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

indicator stylesheet doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.2.3
    • PySide
    • None
    • Linux/X11

    Description

      Edit :
      This bug is also present with Qt6/C++

      The following code doesn't change the style of the listwidget item checkbox . It does with PySide2 :

      from PySide6.QtWidgets import *
      from PySide6.QtCore import *
      from PySide6.QtGui import *
      import sys
      
      
      app = QApplication(sys.argv)
      
      
      main = QListWidget()
      
      for i in range(10):
          item = QListWidgetItem("test")
          item.setCheckState(Qt.Checked)
          main.addItem(item)
      
      main.setStyleSheet(
          """
      	QListWidget::indicator {
      	background-color:blue;
      
      	}
      
      	"""
      )
      
      main.show()
      
      app.exec_()
      

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              sschutz sacha schutz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes