How to get the row under the cursor for a QTableWidget
问题 Is there a way to get the row number under the mouse pointer? I want to remove a row without knowing the row number, but with just the cursor position. EDIT: In This image you can add projects for the Asset Library. When the Delete Bin is clicked the row should be removed. The best way would be to query the ROW number under the Mouse pointer while the bin is clicked. Where the row number is parsed to the removeRow function. I dont know how to make use of the QPointer for that. And cellEntered