QNodeEditor.widgets.combo_box.PopupItemDelegate#

class QNodeEditor.widgets.combo_box.PopupItemDelegate(box: ~QNodeEditor.widgets.combo_box.ComboBox, *args, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>, **kwargs)#

Bases: QStyledItemDelegate

Custom item delegate used in combo box drop-down menu.

This class should not be used. It is automatically instantiated in a ComboBox.

Properties

theme

Get or set the item delegate theme.

Methods

__init__

Create new item delegate.

paint

Paint the item at the specified index.

sizeHint

Enforce strict item height for the item delegate.

__init__(box: ~QNodeEditor.widgets.combo_box.ComboBox, *args, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>, **kwargs)#

Create new item delegate.

Parameters:
  • box (ComboBox) – Combo box this item delegate is for

  • theme (Type[Theme], optional) – Theme for the item delegate (default: DarkTheme)

property theme: Type[Theme]#

Get or set the item delegate theme.