以下成員源於類 QRegExpValidator 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
|
QRegExpValidator (QObject * parent , const char * name ) |
(obsolete)
|
QRegExpValidator (const QRegExp & rx , QObject * parent , const char * name ) |
構造驗證器采用 parent object and name that accepts any string (including an empty one) as valid.
構造驗證器采用 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]+$ .