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

indicator stylesheet doesn't work

XMLWordPrintable

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

      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_()
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes