#pragma once #include #include class DomainValidator:public QRegularExpressionValidator { Q_OBJECT public: DomainValidator(QObject * parent = nullptr); };