The OptionRenderer class provides a QComboBox that can be embedded in an HTML form.
Publicly inherits FormObjectRenderer.
| OptionRenderer | ( Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
| void | addItem | ( const char* text, bool selected, const char* value ); |
| bool | redraw | ( ); |
| void | reset | ( ); |
| QString | value | ( ); |
| void | endOfData | ( ); |
| QComboBox* | _comboBox; |
| int | _selected; |
| QStrList | _values; |
Add an item to the combo box. If no value is given then the text will be used as the item's value.
Resize the combo box to fit its contents.
A value is returned only if the combo box has a name. Otherwise, an empty string is returned.
Do nothing.