sorry, now it's working; thanks
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.
sorry, inside my if there isn't only a printf....nothing inside it isn't excuted...anyway I just putted printf("hello\n") it dosn't work; thanks
Regards
Maybe wwFloatSpinBoxC0 is not the one emitting the signal? You can print those pointers (either from your app or a debugger) and compare them yourself (and using a debugger you can even check properties of those objects).
they work. i'm sorry.thanks
but why if I set spinbox value eg 2, when I launch my app appear 0.2????
---
it need set it by hand....desinger seems doesn't work for this aim
-----
Last edited by mickey; 17th July 2006 at 16:37.
Regards
Bookmarks