m_tableWidget->setFocusPolicy(Qt::NoFocus); //去除选中虚线框 转载于:https://www.cnblogs.com/coolbear/p/5632437.html