Obsolete Members for QRegExpValidator

以下成员源于类 QRegExpValidator 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QRegExpValidator (QObject * parent , const char * name )
(obsolete) QRegExpValidator (const QRegExp & rx , QObject * parent , const char * name )

成员函数文档编制

QRegExpValidator:: QRegExpValidator ( QObject * parent , const char * name )

构造验证器采用 parent object and name that accepts any string (including an empty one) as valid.

QRegExpValidator:: QRegExpValidator (const QRegExp & rx , QObject * parent , const char * name )

构造验证器采用 parent object and a name that accepts all strings that match the regular expression rx .

The match is made against the entire string; e.g. if the regexp is [A-Fa-f0-9]+ it will be treated as ^[A-Fa-f0-9]+$ .