示例#1
0
 def painterPath(self):
     p = QPainterPath()
     a = self.boundingRect()
     a.moveTo(self.state['pos'])
     p.addRect(a)
     return p
示例#2
0
 def painterPath(self):
     p = self.state['pos']
     s = self.state['size']
     path = QPainterPath()
     path.addRect(QtCore.QRectF(p[0], p[1], s[0], s[1]))
     return path
示例#3
0
 def painterPath(self):
     p = QPainterPath()
     a = self.boundingRect()
     a.moveTo(self.state['pos'])
     p.addRect(a)
     return p
示例#4
0
 def painterPath(self):
     p = self.state['pos']
     s = self.state['size']
     path = QPainterPath()
     path.addRect(QtCore.QRectF(p[0], p[1], s[0], s[1]))
     return path