MCPcopy Index your code
hub / github.com/PyQt5/PyQt / GraphicsProxyWidget

Class GraphicsProxyWidget

QtChart/LineStack.py:83–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83class GraphicsProxyWidget(QGraphicsProxyWidget):
84
85 def __init__(self, *args, **kwargs):
86 super(GraphicsProxyWidget, self).__init__(*args, **kwargs)
87 self.setZValue(999)
88 self.tipWidget = ToolTipWidget()
89 self.setWidget(self.tipWidget)
90 self.hide()
91
92 def width(self):
93 return self.size().width()
94
95 def height(self):
96 return self.size().height()
97
98 def show(self, title, points, pos):
99 self.setGeometry(QRectF(pos, self.size()))
100 self.tipWidget.updateUi(title, points)
101 super(GraphicsProxyWidget, self).show()
102
103
104class ChartView(QChartView):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected