IMO your index() should look like so:
Qt Code:
return createIndex(row, column); }To copy to clipboard, switch view to plain text mode
For parent and a "flat" (tabular) model you can always return QModelIndex() as all items have an invalid parent.
IMO your index() should look like so:
Qt Code:
return createIndex(row, column); }To copy to clipboard, switch view to plain text mode
For parent and a "flat" (tabular) model you can always return QModelIndex() as all items have an invalid parent.
Bookmarks