def paint(self,painter,option, widget):
pen = QtGui.QPen()
pen.setWidth(1)
brush = QtGui.QBrush()
brush.setStyle(QtCore.Qt.SolidPattern)
brush.setColor(QtGui.QColor("white"))
painter.setBrush(brush)
painter.drawRect(self.rect)
评论列表
文章目录