#pragma once #include // 右键菜单工具 class I_PLOTBASE_EXPORT ZxContextMenuTool : public ZxSimpleTool { Q_OBJECT public: ZxContextMenuTool(); ~ZxContextMenuTool(); protected: bool onRightDown(const QPointF& pt); bool onRightUp(const QPointF& pt); private slots: void customEvent(QEvent *); private: QPoint m_ptPopup; QMenu* m_pMenu; };