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

Method handleSeriesHoverd

QtChart/LineStack.py:222–229  ·  view source on GitHub ↗
(self, point, state)

Source from the content-addressed store, hash-verified

220 series.setPen(pen)
221
222 def handleSeriesHoverd(self, point, state):
223 # 设置series的画笔宽度
224 series = self.sender() # 信号发送者
225 pen = series.pen()
226 if not pen:
227 return
228 pen.setWidth(pen.width() + (1 if state else -1))
229 series.setPen(pen)
230
231 def initChart(self):
232 self._chart = QChart(title="折线图堆叠")

Callers

nothing calls this directly

Calls 2

setPenMethod · 0.80
widthMethod · 0.45

Tested by

no test coverage detected