以下为代码片段
self.orderList = QTableWidget(self)
self.orderList.setObjectName('orderlist')
#self.orderList.setFont(font11)
self.orderList.horizontalHeader().setFont(font1)#设置表头文字
self.orderList.setStyleSheet("background-color: qlineargradient"
"(spread:pad, x1:0, y1:0, x2:1, y2:0, "
"stop:0 rgba(255, 255, 255, 204), stop:0.294 rgba(255, 255, 255, 204), "
"stop:0.295