Skip to content

Commit 639613f

Browse files
committed
Slider 添加绘制刻度的虚函数
1 parent 642e2ce commit 639613f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

qfluentwidgets/components/widgets/slider.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,16 @@ def paintEvent(self, e):
159159

160160
if self.orientation() == Qt.Orientation.Horizontal:
161161
self._drawHorizonGroove(painter)
162+
self._drawHorizonTick(painter)
162163
else:
163164
self._drawVerticalGroove(painter)
165+
self._drawVerticalTick(painter)
166+
167+
def _drawHorizonTick(self, painter: QPainter):
168+
pass
169+
170+
def _drawVerticalTick(self, painter: QPainter):
171+
pass
164172

165173
def _drawHorizonGroove(self, painter: QPainter):
166174
w, r = self.width(), self.handle.width() / 2

0 commit comments

Comments
 (0)