Hello
currently im using SortRule in my QStandardItemModel that is based on Qt::UserRole
but this definition is globally to all the treeview .
can i define different sort rule to each set of vertial cell’s ?
so for example if i have:

Qt Code:
  1. m_model->setHeaderData(0, Qt::Horizontal, QObject::tr("Group"));
  2. m_model->setHeaderData(2, Qt::Horizontal, QObject::tr("Id"));
To copy to clipboard, switch view to plain text mode 

I am not sure if this will help but if you are having concerns with keeping track of column numbers this can be a good tool.