| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: Loading Plugins error, Peter M. Groen |
|---|---|
| Next by Date: | Re: Loading Plugins error, Jason T. Slack |
| Previous by Thread: | Loading Plugins error, Jason T. Slack |
| Next by Thread: | Compiling Qt 3.3.7 for Universal Binaries, Jason T. Slack |
| Indexes: | [Date] [Thread] [Top] [All Lists] |