I have a push button delete which is called when you want to delete a selected row from a table. Here is the function for delete the row

void frmIzlezniDokumentiPregled::deleteDok()
{
if(!m_OutputDocModel->removeRow(m_tableOutputDoc->currentIndex().row()))
{
qWarning()<<m_OutputDocModel->lastError();
}
slotFilterTable(); // this is for refreshing the table so I can see that the row is removed.
}