QModelIndexList QAbstractItemModel::match ( const QModelIndex & start, int role, const QVariant & value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const [virtual]
不明白这个int role表示什么,怎么用?其它参数倒明白。
有谁可以举个例子说明一下吗?先谢啦!
[ 此贴被XChinux在2007-01-07 17:26重新编辑 ]