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

Method onSeriesHoverd

QtChart/ToolTip.py:183–190  ·  view source on GitHub ↗
(self, point, state)

Source from the content-addressed store, hash-verified

181 self.lineItem.hide()
182
183 def onSeriesHoverd(self, point, state):
184 if state:
185 try:
186 name = self.sender().name()
187 except:
188 name = ""
189 QToolTip.showText(QCursor.pos(), "%s\nx: %s\ny: %s" %
190 (name, point.x(), point.y()))
191
192 def initChart(self):
193 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