#pragma once #include /// 区域缩放和滚轮缩放 class I_PLOTBASE_EXPORT ZxDragScrollTool : public ZxSimpleTool { Q_OBJECT public: ZxDragScrollTool(); protected: virtual bool onLeftDown(const QPointF& pt); virtual bool onLeftUp(const QPointF& pt); virtual bool onMouseMove(const QPointF& pt); protected: QPointF m_origScroll; QPointF m_ptDownView; };