[Qt-interest] QTableWidgetItem with Validator (only numbers) and Range
Matthias Pospiech
matthias.pospiech at gmx.de
Sun May 3 18:57:39 CEST 2009
Matthias Pospiech schrieb:
> I have now implemented a DoubleSpinBoxDelegate, which I have copied from
> the Qt "Spin Box Delegate Example".
>
> I am adding the Delegate via
>
> DoubleSpinBoxDelegate * delegateSpinBox = new
> DoubleSpinBoxDelegate(this) ;
> tableViewPowerDegree->setItemDelegateForColumn(1,delegateSpinBox);
>
> however when I start to edit (double click) the value is always reset to
> 0, although the value was in a valid range.
>
>
The code was still containing some int instead of double values...
Matthias
More information about the Qt-interest-old
mailing list