Feb-16-2023, 11:48 PM
Hi, I have this code with pyqt5:
like if item (x) is checked then do something
how can i do this?
elif (content1 == "next"): todos = ["one" , "two" , "three" , "four", "five"] self.todo_listWidget.show() for todo in todos: item = QListWidgetItem(todo) item.setFlags(item.flags() | QtCore.Qt.ItemIsUserCheckable) item.setCheckState(QtCore.Qt.Unchecked) self.todo_listWidget.addItem(item)And I want if i chose one item make something
like if item (x) is checked then do something
how can i do this?