q_clipping_path.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:brown 作者: ajyoon 项目源码 文件源码
def __init__(self, qt_path, clip_start_x, clip_width):
        """
        Args:
            qt_path (QPainterPath): The path for the item. This value should
                be the same as in `QGraphicsPathItem.__init__()`
            clip_start_x (Unit or None): The local starting position for the
                path clipping region. Use `None` to render from the start.
            clip_width (Unit or None): The width of the path clipping region.
                Use `None` to render to the end
        """
        super().__init__(qt_path)
        self.clip_start_x = clip_start_x
        self.clip_width = clip_width
        self.update_geometry()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号