Hide the border of the selected cell in qtablewidget in pyqt?

I prefer to do:

ui->tableWidget->setFocusPolicy(Qt::NoFocus);

You can also change the focus policy using the design tab.

Leave a Comment