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

Class GraphicsProxyWidget

QtChart/BarStack.py:85–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected