问题1
qtableview, qtreeview,qlistview中的item在选中时,会出现边框,导致设置的样式不美观
解决方案
ui.tableView->setFocusPolicy(Qt::NoFocus);
设置一下列表的焦点策略为NoFocus就可以了
参考
https://blog.csdn.net/qq_39805297/article/details/88847725
问题2
QComboBox下拉框中item选中时出现边框
解决方案
- 方法一:在QSS样式表里可以设置(推荐此方法)
QCom