#pragma once #include #include "iPlugin_global.h" // 文本,MPA解释结果,使用 class I_PLUGIN_EXPORT QTextEditEx : public QTextEdit { Q_OBJECT public: QTextEditEx(QWidget *parent = 0); ~QTextEditEx(); signals: // 触发信号,以便用户对右键菜单进行调整 void sigCustomMenu(QMenu* ); protected: virtual void contextMenuEvent(QContextMenuEvent *e); };