Skip to content
Advertisement

How to reverse spinbox selection in PyQt5?

I have a spinbox in PyQt5 like below. How can I make the selection reversed? i.e. If I click down arrow, the value goes up, vice versa.

spinbox

Advertisement

Answer

A possible solution is to override the stepBy() and stepEnabled() methods:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement