QNodeEditor.widgets.combo_box.ComboBox#
- class QNodeEditor.widgets.combo_box.ComboBox(name: str, *args, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>, **kwargs)#
Bases:
QComboBoxWidget with a combo box that allows selection of predefined options.
The combo box has a custom layout showing its name as an unselectable option in the drop-down menu.
Properties
popup_changed(bool)Signal that emits when the drop-down opens (True) or closes (False)
Get or set the combo box theme.
Methods
Create a new combo box.
eventFilterClose the drop-down menu if the mouse leaves the popup.
hidePopupEmit change signal when closing popup.
showPopupEmit change signal when opening popup.
- __init__(name: str, *args, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>, **kwargs)#
Create a new combo box.