PDA

View Full Version : Editable QListView Column ??



darpan
3rd May 2006, 15:14
Hi,
I want to make QListView's one column editable in each QListViewItem. I have three columns in a QListView (Name, Extension,Size) , here i want to edit Size at run time.

Please assist me how can i do this.

Best Regards

Chicken Blood Machine
3rd May 2006, 19:55
See the docs:
Qt3:
QListViewItem::setRenameEnabled ( int col, bool b )

Qt4:
Override QAbstractItemModel::flags() to return Qt::ItemIsEditable.