set range of QSpinBox in the form to create portfolio