设置表列头背景颜色 QHeaderView::section { background: rgb(255, 255, 127); } 转载于:https://www.cnblogs.com/tianmochou/p/9025336.html