}beginInsertRows(QModelIndex(),0, m_data.count() -1);emitcountChanged(); endInsertRows(); } 开发者ID:SfietKonstantin,项目名称:phonebot,代码行数:92,代码来源:rulesmodel.cpp 示例10: beginInsertRows ▲点赞 1▼ voidWords::addWord() {beginInsertRows(QModelIndex(), words_.size(), words_...
TransactionRecord::decomposeTransaction(wallet, mi->second);if(!toInsert.isEmpty())/* only if something to insert */{ parent->beginInsertRows(QModelIndex(), lowerIndex, lowerIndex+toInsert.size()-1);intinsert_idx = lowerIndex;for(constTransactionRecord &rec : toInsert) { cachedWallet.insert...
示例1: PersistendIndexProve ▲点赞 9▼ # 需要导入模块: from PyQt4.QtGui import QStandardItemModel [as 别名]# 或者: from PyQt4.QtGui.QStandardItemModel importbeginInsertRows[as 别名]classPersistendIndexProve(QMainWindow):def__init__(self):super(PersistendIndexProve, self).__init__() self.ui...