forked from ccsens_hardware/qt_qcp_show
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
446 B
18 lines
446 B
#ifndef CQTEXTEDIT_H
|
|
#define CQTEXTEDIT_H
|
|
|
|
#include <QTextEdit>
|
|
|
|
class CQTextEdit : public QTextEdit
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CQTextEdit(QWidget *parent = 0);
|
|
void focusInEvent(QFocusEvent *event); //覆盖这两个函数
|
|
void focusOutEvent(QFocusEvent *event);
|
|
signals:
|
|
void GetFocus(); //获得焦点信号
|
|
void LostFocus(const QString &); //失去焦点信号
|
|
};
|
|
|
|
#endif // CQTEXTEDIT_H
|
|
|