Hi,
the following code
Qt Code:
  1. for (QList<QModelIndex>::iterator it = currentSelection.begin(); it != currentSelection.end(); ++it)
  2. {
  3. bool res = messengersModel->removeRow(it->row());
  4. this->setRowHidden(it->row(), true);
  5. }
To copy to clipboard, switch view to plain text mode 
deletes row from the MySql table if there's no NULL values in the given record. But, if some of the columns contain NULL value, that row is not deleted by QSqlTableModel::removeRow(). Why? Is it possible to force QSqlTableModel to delete row even if it contains NULL?
Thanks