QTableWidget itemSelectionChanged triggers
-
Hi. According to the QTableWidget documentation itemSelectionChanged triggers "whenever the selection changes".
What I am expecting is that whenever I click on an item in the QTableWidget, itemSelectionChanged will trigger. Instead, itemSelectionChanged is also triggering any time something is added/deleted from the QTableWidget. I am wondering whether there is something about itemSelectionChanged's triggering behaviors that I have missed.
-
Hi. According to the QTableWidget documentation itemSelectionChanged triggers "whenever the selection changes".
What I am expecting is that whenever I click on an item in the QTableWidget, itemSelectionChanged will trigger. Instead, itemSelectionChanged is also triggering any time something is added/deleted from the QTableWidget. I am wondering whether there is something about itemSelectionChanged's triggering behaviors that I have missed.
@Dummie1138
Well, adding/deleting items will also likely trigger a "selection changed". Check QList<QTableWidgetItem *> QTableWidget::selectedItems() const for what is now selected, maybe it's the same items as before, maybe all selections get cleared on changing items....