This behavior i can't replicate, i wrote this simple example:
#include <QtGui>
int main(int argc, char** argv){
le->setValidator(validator);
le->show();
int ret = a.exec();
delete le;
return ret;
}
#include <QtGui>
int main(int argc, char** argv){
QApplication a(argc, argv);
QLineEdit *le = new QLineEdit(0);
QDoubleValidator *validator = new QDoubleValidator (0.0, 999999999.99, 2, le);
validator->setNotation(QDoubleValidator::StandardNotation);
le->setValidator(validator);
le->show();
int ret = a.exec();
delete le;
return ret;
}
To copy to clipboard, switch view to plain text mode
And it works on my machine with both 99.99 and 999999999.99
LE: i use Qt SDK tech preview on Windows.
Bookmarks