#ifndef NMGUICOMPONENTLINEEDIT_H #define NMGUICOMPONENTLINEEDIT_H #include #include #include "nmGUIDefine.h" #include "nmGUI_global.h" #include "nmGUIComponentBase.h" class NM_GUI_EXPORT nmGUIComponentLineEdit : public nmGUIComponentBase { Q_OBJECT public: explicit nmGUIComponentLineEdit(nmDataAttribute* pOriginValue, bool enable = true, QWidget *parent = nullptr); private: void init() override; public slots: /// 外部调用来改变显示值(以 baseUnit 为单位传进来) void setDisplayValue(double v); }; #endif // NMGUICOMPONENTLINEEDIT_H