MCPcopy Create free account
hub / github.com/PyQt5/PyQt / GraphicsProxyWidget

Class GraphicsProxyWidget

QtChart/ToolTip2.py:115–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114
115class GraphicsProxyWidget(QGraphicsProxyWidget):
116
117 def __init__(self, *args, **kwargs):
118 super(GraphicsProxyWidget, self).__init__(*args, **kwargs)
119 self.setZValue(999)
120 self.tipWidget = ToolTipWidget()
121 self.setWidget(self.tipWidget)
122 self.hide()
123
124 def show(self, title, points, pos):
125 self.setGeometry(QRectF(pos, self.size()))
126 self.tipWidget.updateUi(title, points)
127 super(GraphicsProxyWidget, self).show()
128
129
130class ChartView(QChartView):

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected