HI, Are wwWidgtes working?
HI, Are wwWidgtes working?
Regards
In what way? What's wrong with them?
sorry wasn't there a problem with floatSpinBox? I said you many posts ago....
Regards
Yes, there was. But this doesn't neglect all other widgets in the set.
ok sorry, an information; now I'll have to put again float spinBox from desinger or is sufficient overwrite old .h .cpp and compile my app?
Regards
Anyone know why this error? thanks
connect(wwFloatSpinBoxProve, SIGNAL(valueChanged(double)), this, SLOT(PROVE(double)));
mymainform.cpp(197): error C2664: 'bool QObject::connect(const QObject *,const char *,const QObject *,const char *)' : cannot convert parameter 1 from 'wwFloatSpinBox *' to 'const QObject *'
Last edited by jacek; 16th July 2006 at 14:52. Reason: changed [ code ] to [ quote ] to allow wrapping of long lines
Regards
Probably you are missing some #include directive.
Just rewrite the source files. Signal and slot names didn't change. And make sure you have the latest release of the widget.Originally Posted by mickey
sorry maybe i ddin't understand. I downloaded last July version; I overwritted .h .cpp files, but doesn't work. I tried to compile and overwrite .dll in qt directory and put new spinboxes, but doesn't work; what am I doing wrong? thanks
Last edited by mickey; 6th July 2006 at 13:18.
Regards
sorry, but are floatSpinBoxes working? I tried they but seem don't work.
Regards
Define "seem don't work".Originally Posted by mickey
I connect a float spinBox from designer to a SLOT in mainForm; the SLOT isn't called; it was a old bug; it should be fixed, but it don't seem...
Regards
I have rewritten much of the spinbox code today, download the latest version (0.3.3), I have tested it as much as I could and it seems to work fine. There is a small issue with setting initial values smaller than the line step, but it might be caused by Designer and not the class itself.
hi, I tel you this compile error
if I connect from desinger don't work; it works if I connect by end; I didn't find diference if I set minValue >=1.Qt Code:
wwfloatspinbox.cpp(94) : error C2059: syntax error : ')'To copy to clipboard, switch view to plain text mode
Last edited by mickey; 16th July 2006 at 18:21.
Regards
Ah, yes, there is an additional closing bracket for Qt versions that don't support QLocale, but it's enough if you just delete it.
About your slot problems... maybe you have an error somewhere? Which signal-slot connections don't work for you? I tested the valueChanged(double)/setValue(double) connection and it worked fine from within Designer.
sorry, now it's working; thanks
Last edited by mickey; 17th July 2006 at 02:27.
Regards
Another problem's arising; i don't know if could depend from wwSpin but this code below don't work. DO anyone see the error? thanks
Qt Code:
...... wwFloatSpinBox* spinb = (wwFloatSpinBox*) sender(); std::vector<wwFloatSpinBox*> sbc; sbc.push_back(wwFloatSpinBoxC0); if (spinb == sbc[0]) printf("hello");To copy to clipboard, switch view to plain text mode
Regards
What does "don't work" mean? The spinbox doesn't have anything to do here, you're operating on pointers to them only, so you can't blaim the object for anything.
When I change wwSpinBox value this SLOT is called (it works), but "hello" isn't printed; with QSpinBox this worked! I need to know who's the sender...thanks......Originally Posted by mickey
Regards
Try printf("Hello\n") instead.
Bookmarks