Nominate our 2022 Qt Champions!

QTreeWidgetItem checkstate changed

  • Hi,

    I am using a subclass of QTreeWidgetItem to represent items in a treestructure. Now I would like to set a member, as soon as the checkstate of the item is changed by the user, but I did not find a signal, which lets me detect the change of the checkstate (or maybe I am just not seeing it).

    Is there a good way to get the change of the checkState with QTreeWidgetItem?

    I am using Qt 4.8.

  • Lifetime Qt Champion


    I'd say QTreeWidget::itemChanged is the signal you want and in the slot you can use checkState on the item

    Hope it helps

Log in to reply