QSpinBox range assignment

0

I have to define a QSPINBOX in pyqt, where the values taken by the QSPINBOX each time the ValueChanged () signal returns is that of a defined vector.

For example:

vector = [10, 15, 3, 20] 

In other words, the QSPINBOX in this case should take the values 10, 15, 3, 20, etc.

Pyqt brings the function setRange (), but it defines the working range between a minimum and a maximum, which in my case does not work for me.

What function does pyqt bring to do this, or how should the problem arise?

Thanks for reading.

    
asked by Marcelo S. 28.08.2018 в 16:18
source

0 answers