40 lines
693 B
C
40 lines
693 B
C
|
|
#ifndef DEPTLINEEDIT_H
|
|||
|
|
#define DEPTLINEEDIT_H
|
|||
|
|
|
|||
|
|
#include <QWidget>
|
|||
|
|
#include <QLineEdit>
|
|||
|
|
#include <QGraphicsProxyWidget>
|
|||
|
|
#include <QGraphicsView>
|
|||
|
|
#include <QLineEdit>
|
|||
|
|
#include <QLabel>
|
|||
|
|
|
|||
|
|
#pragma execution_character_set("utf-8")
|
|||
|
|
|
|||
|
|
/*自定义输入控件*/
|
|||
|
|
class DeptLineEdit : public QGraphicsView
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
DeptLineEdit(QWidget *parent);
|
|||
|
|
~DeptLineEdit();
|
|||
|
|
QLineEdit *lineEdit_Depth;
|
|||
|
|
QLabel *m_lbl;
|
|||
|
|
// QWidget interface
|
|||
|
|
protected:
|
|||
|
|
void showEvent(QShowEvent *);
|
|||
|
|
private:
|
|||
|
|
void init();
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
QGraphicsScene *m_scene;
|
|||
|
|
private:
|
|||
|
|
QRect m_rect;
|
|||
|
|
QGraphicsProxyWidget* proxyWidget;
|
|||
|
|
QWidget *m_depWidget;
|
|||
|
|
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // DEPTLINEEDIT_H
|