QStandardItemModel itemChanged signal not always firing



  • I have QStandardItemModel displayed in a QTreeView. When user clicks on certain items in the view they become editable. After the user has changed a value I should always hit my breakpoint in on_dataChanged (i.e. the slot) but I do not always (if I save the data is not updated to file even though it is updated on screen). When I do hit the breakpoint at the start of on_dataChanged the data is saved to file and updated on screen correctly.

    • I always hit the slot the first time I edit some data after loading the app but not necessaries the first time I edit each item.

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.