I have a program with two QSpinBoxes with integers in them. When user clicks one spinbox it should affect to the other one. And vice versa. I can't use valueChanged() signal because it causes an endless loop that won't stop until the maximum values of the boxes have been reached. I don't the want computer to run valueChanged() when the value changes as the result of clicking another spinbox.
So basically the problem is how can I handle a mouse click event with spinboxes? Tried to search solutions but couldn't find clear ones enough.