Esempio n. 1
0
 def painterPath(self):
     p = QPainterPath()
     a = self.boundingRect()
     a.moveTo(self.state['pos'])
     p.addRect(a)
     return p
Esempio n. 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
Esempio n. 3
0
 def painterPath(self):
     p = QPainterPath()
     a = self.boundingRect()
     a.moveTo(self.state['pos'])
     p.addRect(a)
     return p
Esempio n. 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