EDIT: The above subclassing method also works. I've done that before too, in certain scenarios. For your problem I would say using a signal mapper is still the cleaner method, unless you have other reasons to create a subclass.
Yes, with the method I showed you need to manually grab the value from the list of QSliders, but it is very straightforward because you have the index. So you could do this inside your setDeformationFactor(int):
Qt Code:
setDeformationFactor(int index) { int new_slider_value = m_sliders[index]->value(); }To copy to clipboard, switch view to plain text mode
Bookmarks