ビューで線を書く
2016/12/13
class MyScene(QtGui.QGraphicsScene):
def __init__(self,parent):
super(MyScene, self).__init__(parent)
def drawLine(self,x1,y1,x2,y2):
pen = QtGui.QPen()
qc = QtGui.QColor()
qc.setNamedColor('#000000')
pen.setColor(qc)
self.addLine(x1,y1,x2,y2,pen)
[PySide] 線を引く
https://gist.github.com/peace098beat/29e0f0ac1bb3d690e1e4