customdelegate¶
- class camelot.view.controls.delegates.customdelegate.CustomDelegate(parent=None, editable=True, **kwargs)[source]¶
Base class for implementing custom delegates.
- editor¶
class attribute specifies the editor class that should be used
- createEditor(parent, option, index)[source]¶
Parameters: option – use an option with version 5 to indicate the widget will be put onto a form
- paint_text(painter, option, index, text, margin_left=0, margin_right=0, horizontal_align=1, vertical_align=128)[source]¶
Paint unicode text into the given rect defined by option, and fill the rect with the background color :arg margin_left: additional margin to the left, to be used for icons or others :arg margin_right: additional margin to the right, to be used for icons or others