Where's the syntax error
Hi people,
I am having a problem locating the syntax error in a peice of code I have compiled in QT3 designer with qmake. The error is as follows... In file included from .ui/conversionform.cpp:25: conversionform.ui.h: In member function `void ConversionForm::init()': conversionform.ui.h:67: error: syntax error before `(' token make: *** [.obj/conversionform.o] Error 1 The code for the ::init() member function is below... Code:
void ConversionForm::init() numberLineEdit->setValidator( new QDoubleValidator(numberLineEdit ) ); anyone out there with qt3 experience spot the error. I have experience of C++, but this is my first effort at designing a program with qt3. I have searched high and low for the error but can't find it. This is the example that comes with the documentation. Any help appreciated. TamTam. |
Have you included qvalidator.h ?
|
Thanks SBing, it's always the glaringly obvious.
Tam |
All times are GMT -5. The time now is 07:42 AM. |