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

indicator stylesheet doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 6.2.3
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      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

              Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              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