Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.3.0
-
None
Description
I didn't success to set border color to checkboxes inside a QListWidget. Both with C++ and PySide6.
It was working with PySide2.
It is quite problematic because, we cannot have checkbox for Qt application in dark theme.
#include <QApplication> #include <QtWidgets> #include <QtCore> int main(int argc, char *argv[]) { QApplication a(argc, argv); QListWidget widget; for (int i=0; i <10; ++i) { QListWidgetItem * item = new QListWidgetItem("test"); item->setCheckState(Qt::Checked); widget.addItem(item); } widget.show(); a.setStyleSheet("QTableView::indicator:checked {background-color:red}"); return a.exec(); }