该信号貌似没啥作用,因为,view中的数据,是从model获取的。
If the structure of the underlying data changes, the model can emit layoutChanged() to indicate to any attached views that they should redisplay any items shown, taking the new structure into account.
bool TradeTableModel::setData ( const QModelIndex & index, const QVariant & value, int role/* = Qt::EditRole */)
{int row = index.row();
if(row >= m_OrderList.size())
return QAbstractItemModel::setData(index, value, role);
if(role == Qt::CheckStateRole && index.column() == ORDER_I