[Interest] qrgexpvalidator and qregexp

Lucas Betschart lucasbetschart at gmail.com
Mon Sep 30 16:04:19 CEST 2013


Hi

Are you using Qt 4.7 or lower on openSUSE?
For 4.7 it's
QRegExpValidator(const QRegExp &rx , QObject *parent)
while for newer version the QObject is optional. Add NULL or this.

Regards


2013/9/30 Alexander Syvak <alexander.svk at gmail.com>
>
> Hi,
>
> compiling the line
> QRegExpValidator valtor(QRegExp("[1-9][0-9]*"));
> yields an error: no matching function for call to
QRegExpValidator::QRegExpValidator(QRegExp).
>
> It's done on openSUSE.
> On Win7 it's compiled successfully.
>
> Where is the gist?
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130930/81a8af20/attachment.html>


More information about the Interest mailing list