TypedDelegate

class qte.TypedDelegate

A delegate which handles various python types.

Subclasses should provide at least an implementation of getWidget, which returns a new instance of a widget to use for editing. The delegate removes the widget frame for better style consistency.

The default implementation guesses the widget based on the data type returned from the model by EditRole, using guessWidget. If the expected data type is known, however, it is better to use one of the strictly typed delegates: FloatDelegate, DateTimeDelegate or ListDelegate.

Members

New Methods

TypedDelegate.getWidget(parent, option, index)

Return the widget to use for editing.

Re-implemented Methods

TypedDelegate.createEditor(parent, option, index)
TypedDelegate.setEditorData(editor, index)
TypedDelegate.setModelData(editor, model, index)

Project Versions

Table Of Contents

Previous topic

TextEdit

Next topic

Functions

This Page