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.
 
 
 

20 lines
462 B

#ifndef CQSPINBOX_H
#define CQSPINBOX_H
#include <QSpinBox>
#include <QKeyEvent>
class CQSpinBox : public QSpinBox
{
Q_OBJECT
public:
explicit CQSpinBox(QWidget *parent = 0);
void focusInEvent(QFocusEvent *event); //覆盖这两个函数
void focusOutEvent(QFocusEvent *event);
signals:
void GetFocus(); //获得焦点信号
void LostFocus(const QString &); //失去焦点信号
};
#endif // CQLINEEDIT_H