Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.2.3
-
None
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
- relates to
-
QTBUG-83619 Stylesheet: QAbstractItemView::indicator changes selected item text color
-
- Closed
-