#pragma once #include #include class DoubleSpinBox : public QDoubleSpinBox { Q_OBJECT public: DoubleSpinBox(QWidget *parent = nullptr); ~DoubleSpinBox(); virtual bool eventFilter(QObject *watched, QEvent *event) override; signals: void editDone(); private: QLineEdit* m_lineEdit{ nullptr }; bool m_valueChangeFalg = false; };