Ok, this works!
Qt Code:
column5.append(item);To copy to clipboard, switch view to plain text mode
How can I do this? Have you a code snippet for me?
Ok, this works!
Qt Code:
column5.append(item);To copy to clipboard, switch view to plain text mode
How can I do this? Have you a code snippet for me?
If setting the Qt::DisplayRole is working then just use that. However:
and, elsewhere:Qt Code:
column5.append(item);To copy to clipboard, switch view to plain text mode
This makes all the columns in the model sort on the edit role.Qt Code:
model->setSortRole(Qt::EditRole);To copy to clipboard, switch view to plain text mode
realdarkman71 (1st December 2010)
Ok, big thanks for your help!
Bookmarks