Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23276

(pyqt6 python) How to get a signal when QListWidget's item is checked?

$
0
0

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


Viewing all articles
Browse latest Browse all 23276

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>