And if I attach the item delegate to the table view
Qt Code:
tableView->setItemDelegate(itemDelegate)To copy to clipboard, switch view to plain text mode
the createEditor function is called before the setEditorData and there is no longer a segmentation fault but the tableView behaves in a psychedelic way. If I edit something, the contents the cells are in a certain way mixed up. If I edit a cell, the cell where I was before takes the previous value of the cell I just modified.
I guess I must be doing something wrong but I did exactly the same thing as in the documentation.
Thanks!...
Bookmarks