标题:QAbstractItemModel::match 怎么用?
作者:icevi
日期:2006-12-29 15:19
内容:
QModelIndexList QAbstractItemModel::match ( const QModelIndex & start, int role, const QVariant & value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const
不明白这个int role表示什么,怎么用?其它参数倒明白。
有谁可以举个例子说明一下吗?先谢啦!