PDA

View Full Version : How can i Read Out Arrays in QDoubleSpinBox - QAbstractSpinBox



Astronomy
10th November 2009, 16:49
Hi Everyone,

I want to use the UP/DOWN Arrows from the SpinBox, to select the next entry from an Array.

I want to read out double Numbers from a File and display it in QDoubleSpinBox - QAbstractSpinBox. So far so good, now i want to use the UP/DOWN Arrows from the SpinBox, to select the next entry from the Array. But it changes only the value wich is actually displayed in doubleSpinBox at a given decimal point. (e.g. 1423 pressing up shows 1424)

How can i tell the SpinBox not to alter the Displayed value but to step to the next array Index (e.g. MyData[20] ...MyData[21]...)

Is this already implemented somewhere? Or do i have to build my own widget and derive it from QDoubleSpinBox - QAbstractSpinBox ? And use Signals and build my own Slots?


thanx Astronomy