posts - 225, comments - 62, trackbacks - 0, articles - 0
   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

日历

<2008年6月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

公告

联系Email: kyo86.dai[at]gmail[dot]com QQ: 285819504

常用链接

随笔档案

Links

搜索

  •  

最新评论


解决方法:
在插入之前调用
void QAbstractItemModel::beginInsertRows ( const QModelIndex & parent, int first, int last );
在插入之后调用
void QAbstractItemModel::endInsertRows () ;

类似的还有
void QAbstractItemModel::beginInsertColumns ( const QModelIndex & parent, int first, int last );
void QAbstractItemModel::endInsertColumns ();

void QAbstractItemModel::beginRemoveColumns ( const QModelIndex & parent, int first, int last );
void QAbstractItemModel::endRemoveColumns ();

void QAbstractItemModel::beginRemoveRows ( const QModelIndex & parent, int first, int last );
void QAbstractItemModel::endRemoveRows ();


只有注册用户登录后才能发表评论。