Qt/C++: Signal for when a QListWidgetItem is checked?

前端 未结 2 1876
遥遥无期
遥遥无期 2021-01-04 05:02

In my form I have a QListWidget which contains checkable QListWidgetItems. I\'m looking for a way to capture the event of a QListWidgetItem

2条回答
  •  囚心锁ツ
    2021-01-04 05:17

    Apparently no such signal is provided, your best bet is to use QListWidget::itemChanged(QListWidgetItem* item) , and scan the resulting item->checkState(). This should be a slight improvement over using itemClicked

提交回复
热议问题