Angus Leeming wrote: > So, it appears that things have changed siznce qt-2.3.x:
> ../../../../src/frontends/qt2/lengthvalidator.C: In constructor > `LengthValidator::LengthValidator(QWidget*, const char*)': > ../../../../src/frontends/qt2/lengthvalidator.C:28: no matching > function for > call to `QValidator::QValidator(QWidget*&, const char*&)' > /usr/lib/qt3-gcc3.2/include/qvalidator.h:64: candidates are: > QValidator::QValidator(const QValidator&) > /usr/lib/qt3-gcc3.2/include/qvalidator.h:54: > QValidator::QValidator(QObject*, const char* = 0) > make[5]: *** [lengthvalidator.lo] Error 1 > > Do we need a bit of #ifdef magic? I'm a bit lost here. QWidget derives from QObject, so why doesn't the QValidator constructor accept a QWidget pointer? class Q_EXPORT QWidget : public QObject, public QPaintDevice {...}; C++-gurus? Note that this attempt at brute force also fails: LengthValidator::LengthValidator(QWidget * parent, const char * name) : QValidator(static_cast<QObject *>(parent), name), no_bottom_(true) {} ../../../../src/frontends/qt2/lengthvalidator.C: In constructor `LengthValidator::LengthValidator(QWidget*, const char*)': ../../../../src/frontends/qt2/lengthvalidator.C:26: invalid static_cast from type `QWidget*' to type `QObject*' -- Angus