I put qDebug() but there is no output in console and my timer does not stop.

Qt Code:
  1. QVariant TxTableModel::data(const QModelIndex & index, int role) const
  2. {
  3. if (role == Qt::DisplayRole) {
  4. return m_Data.getCell(index.row(), index.column());
  5. }
  6. if (role == Qt::SizeHintRole) {
  7. return QSize(400, 50);
  8. }
  9. if (role == Qt::EditRole) {
  10. //timer->stop();
  11. qDebug() << "timer stop";
  12. return m_Data.getCell(index.row(), index.column());
  13. }
  14. return QVariant();
  15. }
To copy to clipboard, switch view to plain text mode