qt-interest@trolltech.com
[Top] [All Lists]

Qtreeview selection highlighted question?

Subject: Qtreeview selection highlighted question?
From: "gisfans gisfans"
Date: Thu, 23 Nov 2006 22:49:09 +0800
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;
}
 
I foud that similar question :
http://lists.trolltech.com/qt-intere...ad00451-0.html

but I still do not know how to slove these problem?
<Prev in Thread] Current Thread [Next in Thread>
  • Qtreeview selection highlighted question?, gisfans gisfans <=