Camelot includes a number of Qt delegates, most of them are used as default delegates for the various sqlalchemy and camelot field types.
Some delegates take specific arguments into account for their construction. All field_attributes specified for a certain field will be propagated towards the constructor of the delegate. Some of them will be used by the delegate itself, others will be used by the editor, created by the delegate.
Custom delegate for boolean values
By default, creates a BoolEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- minimum
- maximum
- nullable
- field_name
Dynamic field attributes supported by the editor :
Custom delegate for Matplotlib charts
Field attributes supported by the delegate :
- parts
- separator
By default, creates a CodeEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- parts
- editable
- field_name
Dynamic field attributes supported by the editor :
By default, creates a ColorEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Custom delegate for float values.
The class attribute icons is used to customize the icons displayed.
Field attributes supported by the delegate :
- precision
- reverse
- neutral
- unicode_format
By default, creates a ColoredFloatEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- precision
- reverse
- neutral
- option
- field_name
Dynamic field attributes supported by the editor :
By default, creates a ChoicesEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- nullable
- field_name
Dynamic field attributes supported by the editor :
Custom delegate for currency values
Custom delegate for date values
Field attributes supported by the delegate :
By default, creates a DateEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- editable
- nullable
- field_name
Dynamic field attributes supported by the editor :
Field attributes supported by the delegate :
By default, creates a DateTimeEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- editable
- nullable
- field_name
Dynamic field attributes supported by the editor :
By default, creates a FileEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- storage
- field_name
- remove_original
Dynamic field attributes supported by the editor :
Custom delegate for float values
Field attributes supported by the delegate :
By default, creates a FloatEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- minimum
- maximum
- calculator
- decimal
- option
- field_name
Dynamic field attributes supported by the editor :
camelot.core.files.storage.StoredImage.
Custom delegate for integer values
Field attributes supported by the delegate :
- unicode_format
By default, creates a IntegerEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- minimum
- maximum
- calculator
- option
- field_name
Dynamic field attributes supported by the editor :
- editable
- background_color
- tooltip
- prefix
- suffix
- nullable
- single_step
Delegate to display an attribute as a label
By default, creates a LabelEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- text
- field_name
Dynamic field attributes supported by the editor :
Field attributes supported by the delegate :
By default, creates a LocalFileEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- field_name
- directory
- save_as
- file_filter
Dynamic field attributes supported by the editor :
Custom delegate for many 2 one relations
![]()
Once an item has been selected, it is represented by its unicode representation in the editor or the table. So the related classes need an implementation of their __unicode__ method.
Field attributes supported by the delegate :
By default, creates a Many2OneEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
the objects of the target class.
The items in the ComboBox are the unicode representation of the related objects. So these classes need an implementation of their __unicode__ method to show up in a human readable way in the ComboBox.
MonthsDelegate
custom delegate for showing and editing months and years
Field attributes supported by the delegate :
- forever
By default, creates a MonthsEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
By default, creates a NoteEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Custom delegate for many 2 one relations
Field attributes supported by the delegate :
Custom delegate for simple string values
Field attributes supported by the delegate :
By default, creates a TextLineEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Custom delegate for rich text (HTML) string values
Field attributes supported by the delegate :
By default, creates a RichTextEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Delegate for Smiley’s
Field attributes supported by the delegate :
- editable
- icons
By default, creates a SmileyEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- editable
- icons
- field_name
Dynamic field attributes supported by the editor :
Delegate for integer values from ( default from 1 to 5)(Rating Delegate)
Field attributes supported by the delegate :
By default, creates a StarEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Custom delegate for simple string values
Field attributes supported by the delegate :
By default, creates a TextEditEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Field attributes supported by the delegate :
By default, creates a TimeEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- editable
- field_name
- format
Dynamic field attributes supported by the editor :
Field attributes supported by the delegate :
By default, creates a VirtualAddressEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Manages custom delegates, should not be used by the application developer
Use a custom delegate createEditor method if it exists
Inserts a custom column delegate
Use a custom delegate paint method if it exists
Removes custom column delegate
Use a custom delegate setEditorData method if it exists
Use a custom delegate setModelData method if it exists
Custom delegate for boolean values
By default, creates a BoolEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- minimum
- maximum
- nullable
- field_name
Dynamic field attributes supported by the editor :
alias of BoolEditor
Custom delegate for Matplotlib charts
alias of ChartEditor
Field attributes supported by the delegate :
- parts
- separator
By default, creates a CodeEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- parts
- editable
- field_name
Dynamic field attributes supported by the editor :
By default, creates a ColorEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Custom delegate for float values.
The class attribute icons is used to customize the icons displayed.
Field attributes supported by the delegate :
- precision
- reverse
- neutral
- unicode_format
By default, creates a ColoredFloatEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- precision
- reverse
- neutral
- option
- field_name
Dynamic field attributes supported by the editor :
alias of ColoredFloatEditor
By default, creates a ChoicesEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- nullable
- field_name
Dynamic field attributes supported by the editor :
alias of ChoicesEditor
Custom delegate for currency values
Base class for implementing custom delegates.
class attribute specifies the editor class that should be used
Parameters: | option – use an option with version 5 to indicate the widget |
---|
will be put onto a form
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
Custom delegate for date values
Field attributes supported by the delegate :
By default, creates a DateEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- editable
- nullable
- field_name
Dynamic field attributes supported by the editor :
alias of DateEditor
Field attributes supported by the delegate :
By default, creates a DateTimeEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- editable
- nullable
- field_name
Dynamic field attributes supported by the editor :
alias of DateTimeEditor
By default, creates a FileEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- storage
- field_name
- remove_original
Dynamic field attributes supported by the editor :
alias of FileEditor
Custom delegate for float values
Field attributes supported by the delegate :
By default, creates a FloatEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- minimum
- maximum
- calculator
- decimal
- option
- field_name
Dynamic field attributes supported by the editor :
alias of FloatEditor
Delegate for camelot.types.Image fields. Expects values of type camelot.core.files.storage.StoredImage.
alias of ImageEditor
Custom delegate for integer values
Field attributes supported by the delegate :
- unicode_format
By default, creates a IntegerEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- minimum
- maximum
- calculator
- option
- field_name
Dynamic field attributes supported by the editor :
- editable
- background_color
- tooltip
- prefix
- suffix
- nullable
- single_step
alias of IntegerEditor
Delegate for camelot.types.Language columns. Expects string values.
alias of LanguageEditor
Field attributes supported by the delegate :
By default, creates a LocalFileEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- field_name
- directory
- save_as
- file_filter
Dynamic field attributes supported by the editor :
alias of LocalFileEditor
Custom delegate for many 2 one relations
![]()
Once an item has been selected, it is represented by its unicode representation in the editor or the table. So the related classes need an implementation of their __unicode__ method.
Field attributes supported by the delegate :
By default, creates a Many2OneEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
alias of Many2OneEditor
Custom delegate for many 2 one relations
Field attributes supported by the delegate :
Display a ManyToOne field as a ComboBox, filling the list of choices with the objects of the target class.
The items in the ComboBox are the unicode representation of the related objects. So these classes need an implementation of their __unicode__ method to show up in a human readable way in the ComboBox.
Custom delegate for simple string values
Field attributes supported by the delegate :
By default, creates a TextLineEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Custom delegate for rich text (HTML) string values
Field attributes supported by the delegate :
By default, creates a RichTextEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Delegate for integer values from ( default from 1 to 5)(Rating Delegate)
Field attributes supported by the delegate :
By default, creates a StarEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Custom delegate for simple string values
Field attributes supported by the delegate :
By default, creates a TextEditEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Field attributes supported by the delegate :
By default, creates a TimeEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- editable
- field_name
- format
Dynamic field attributes supported by the editor :
Field attributes supported by the delegate :
By default, creates a VirtualAddressEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
Delegate for Smiley’s
Field attributes supported by the delegate :
- editable
- icons
By default, creates a SmileyEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- editable
- icons
- field_name
Dynamic field attributes supported by the editor :
By default, creates a NoteEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
alias of NoteEditor
Delegate to display an attribute as a label
By default, creates a LabelEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
- text
- field_name
Dynamic field attributes supported by the editor :
MonthsDelegate
custom delegate for showing and editing months and years
Field attributes supported by the delegate :
- forever
By default, creates a MonthsEditor as its editor.
Field Attributes | Editor |
editable=False tooltip=’tooltip’ | ![]() |
editable=True | ![]() |
editable=True tooltip=’tooltip’ | ![]() |
editable=False | ![]() |
editable=False background_color=ColorScheme.green | ![]() |
editable=True background_color=ColorScheme.green | ![]() |
Static attributes supported by this editor :
Dynamic field attributes supported by the editor :
alias of MonthsEditor