Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QString QDoubleSpinBox::prefix [read, write]

the spin box's prefix

The prefix is prepended to the start of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:

        spinbox->setPrefix("$");

To turn off the prefix display, set this property to an empty string. The default is no prefix. The prefix is not displayed when value() == minimum() and specialValueText() is set.

If no prefix is set, prefix() returns an empty string.

See also:
suffix(), setSuffix(), specialValueText(), setSpecialValueText()

Definition at line 110 of file qspinbox.h.


Generated by  Doxygen 1.6.0   Back to index