hello, Now i write a program with qtreeview and subclassing qabstractItemModel ,it works
and display properly .but when I selected a item in treeview , selection item doesn't highlighted? anyone know how to control to highlighted selection?
I write flag function
such as

Qt::ItemFlags GDOSGrassModel::flags(const QModelIndex &index) const
{
if (!index.isValid())
return Qt::ItemIsEnabled;

return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
}