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

后端 未结 2 747
南笙
南笙 2020-12-16 04:50

Is there a way i can hide the border of the selected cell(or make the border color as white)in a qtablewidget.. By default a border with dotted line is shown.. Can u help me

2条回答
  •  抹茶落季
    2020-12-16 05:50

    I prefer to do:

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

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

提交回复
热议问题