PDA

View Full Version : A class member has ran away?!



MIH1406
20th August 2009, 23:52
Hi,

Yes I am a newbie but while I am working with QSpinBox and specially setRange(int min, int max) everything is OK I also tried compiling it and everything is OK but after a while I could not use setRange I can't see it in the drop down menu (in Qt Creator) and I have this Error message from the compiler:

error: 'class QSpinBox' has no member named 'setRange'????

I get around this error by using setMaximum and setMinimum.

But why does this happning??


Qt Creator 1.2.1
Based on Qt 4.5.2 (32 bit)

Built on Jul 10 2009 at 15:03:29

Thanks in advanced
Mohammad AlHobayyeb

franz
21st August 2009, 06:51
Did you by accident edit the QSpinBox class definition?

MIH1406
22nd August 2009, 17:50
Thank you this is the problem but I did not know that I can do so by accident. I thought they are read-only files.

Thank you.

gboelter
23rd August 2009, 04:34
error: 'class QSpinBox' has no member named 'setRange'????


Can you post a little bit more output from this error message ...?

MIH1406
24th August 2009, 23:21
Problem SOLVED