• 6092阅读
  • 0回复

QAbstractItemModel::match 怎么用? [复制链接]

上一主题 下一主题
离线icevi
 

只看楼主 倒序阅读 楼主  发表于: 2006-12-29
— 本帖被 XChinux 从 General Qt Programming 移动到本区(2011-01-02) —
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重新编辑 ]
====================
www.bilive.com
BiForm BiReader BiChat
最爱QT和PYTHON
====================
快速回复
限100 字节
 
上一个 下一个