I made a list with QListWidget and add items from DB(about 100 or more items so check the flags with loop is hard)How can i check or get a signal when QListWidgetItem is checked?
Here is the code setting flags.
for data in DB: item = QtWidgets.QListWidgetItem(self.list) item.setText(str(data)) item.setFlags(item.falgs() | Qt.ItemFlag.ItemIsUserCheckable) item.setCheckState(Qt.CheckState.Unchecked)Using python ver 3.12, pyqt ver 6