I didnt fully understand what you require.
But if you are talking about displaying some data, and using some other data, you can use roles.
For text to appear, Qt has Qt::DisplayRole.You can define your own roles and set data for it.
something like -
QString value = index.data(MYROLE).toString();
Hope you get the idea![]()
Bookmarks