checkbox column in tableview

Hello, what i need is a column of checkboxes in my qtableview.I have reimplemeted QItemDelegate class, got the column but when u click on the checkbox a new Widget appears on screen, but not on top of that cell.
here is my code :