I’d like share data between a QSlider and a QSpinBox. If I edit one, the other one should get the same value without having to do it manually using the Model View Delegate architecture.
Any idea how to use this architecture with an integer model ?
Thanks
I’m not quite sure I understand your question, but the standard way to do this in Qt is to just use the built-in signals and slots
valueChanged(int)andsetValue(int):Note that this won’t produce infinite recursion, and at two lines of code, it’s pretty darn automatic.