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

Method onSeriesHoverd

QtChart/ToolTip2.py:181–188  ·  view source on GitHub ↗
(self, point, state)

Source from the content-addressed store, hash-verified

179 self.lineItem.hide()
180
181 def onSeriesHoverd(self, point, state):
182 if state:
183 try:
184 name = self.sender().name()
185 except:
186 name = ""
187 QToolTip.showText(QCursor.pos(), "%s\nx: %s\ny: %s" %
188 (name, point.x(), point.y()))
189
190 def initChart(self):
191 self._chart = QChart(title="Line Chart")

Callers

nothing calls this directly

Calls 3

nameMethod · 0.80
yMethod · 0.80
xMethod · 0.45

Tested by

no test coverage detected