Quote Originally Posted by jacek
Try this(note the "!"):
Qt Code:
  1. if( ! m_pTableModel->insertRecord( INSERT_RECORD_AT_END, cDataRecord ) )
  2. {
  3. qDebug() << m_pTableModel->lastError().text();
  4. qDebug() << m_pTableModel->query().lastQuery();
  5. }
To copy to clipboard, switch view to plain text mode 
I did that, but since operation is sucessfull, qDebug statements are skipped.