hello everybody
i want to remove the selected row in my QTableWidget , i am using :

pieces->removeRow(pieces->currentIndex().row());

pieces is the QTableWidget , i have no errors in compilation.
but when i select a row and click on a button to run the action , my application shutdown
i tried also removeRow(pieces->currentRow()); and i have the same problem

the problem is in removeRow() because i tried hideRow() and it was working perfectly

any idea please