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