Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QStandardItemModel itemChanged signal not always firing

QStandardItemModel itemChanged signal not always firing

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 781 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dolphin
    wrote on last edited by
    #1

    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.
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved