I put qDebug() but there is no output in console and my timer does not stop.
{
if (role == Qt::DisplayRole) {
return m_Data.getCell(index.row(), index.column());
}
if (role == Qt::SizeHintRole) {
}
if (role == Qt::EditRole) {
//timer->stop();
qDebug() << "timer stop";
return m_Data.getCell(index.row(), index.column());
}
}
QVariant TxTableModel::data(const QModelIndex & index, int role) const
{
if (role == Qt::DisplayRole) {
return m_Data.getCell(index.row(), index.column());
}
if (role == Qt::SizeHintRole) {
return QSize(400, 50);
}
if (role == Qt::EditRole) {
//timer->stop();
qDebug() << "timer stop";
return m_Data.getCell(index.row(), index.column());
}
return QVariant();
}
To copy to clipboard, switch view to plain text mode
Bookmarks