首页| 论坛| 消息

标题:QSqltablemodel删除问题
作者:sunxiaoyan
日期:2014-03-03 13:44
内容:

我想用QSqltablemodel删除表中所有的内容 该怎么办啊


#1 [lee_xh 06-01 11:21]
int nRowCnt = m_model->rowCount();
while (nRowCnt > 0)
{
nRowCnt--;
m_model->removeRow(nRowCnt);
}

回复 发表
主题 版块