class ScrollableLineGraph(QGraphicsItem): def __init__(self, data): """ 初始化線圖項(xiàng),設(shè)置初始顯示范圍和數(shù)據(jù) :param data: 要顯示的數(shù)據(jù)列表 """ super().__init__() self.data = data self.current_start = 0 # 當(dāng)前顯示的起始索引 self.bounding_rect = QRectF(0, 0, 900, 200) # 線圖...
www.dbjr.com.cn/python/3314611...htm 2025-6-11