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

Method handleMarkerHovered

QtChart/BarStack.py:203–215  ·  view source on GitHub ↗
(self, status)

Source from the content-addressed store, hash-verified

201 marker.setBrush(brush)
202
203 def handleMarkerHovered(self, status):
204 # 设置bar的画笔宽度
205 marker = self.sender() # 信号发送者
206 if not marker:
207 return
208 bar = marker.barset()
209 if not bar:
210 return
211 pen = bar.pen()
212 if not pen:
213 return
214 pen.setWidth(pen.width() + (1 if status else -1))
215 bar.setPen(pen)
216
217 def handleBarHoverd(self, status, index):
218 # 设置bar的画笔宽度

Callers

nothing calls this directly

Calls 2

setPenMethod · 0.80
widthMethod · 0.45

Tested by

no test coverage detected