PDA

View Full Version : QDoubleValidator porting to Linux issue



mqt
8th April 2014, 06:51
When we try to port a Qt4 code from windows to linux, we are getting following error
error: no matching function for call to ?QDoubleValidator::QDoubleValidator()?
It is working fine in windows. Any ideas?

wysota
8th April 2014, 08:02
Does this work?


#include <QDoubleValidator>

int main() {
QDoubleValidator v;
return 0;
}

mqt
9th April 2014, 12:49
QDoubleValidator v;
has not worked. But QDoubleValidator *v=new QDoubleValidator (0); worked
Thanks

wysota
9th April 2014, 12:57
What do you mean that it has "not worked"?