QGIS版本:3.16.9
代码位置:\src\core\symbology.cpp
void drawPathWithDashPatternTweaks( QPainter *painter, const QPolygonF &points, QPen pen ) const;
截图如下: