add_icon_button#
- CommonWindowUtils.add_icon_button(layout, icon, height=40, width=None, text='lineedit')[source]#
Add icon button.
- Parameters:
- layout: QLayout
The layout to which the icon button and line edit will be added.
- icon: QIcon
The path to the icon that will be displayed on the button.
- height: int, optional
The height of the icon button and line edit. Default is 40.
- width: list, optional
The width of the icon button. If not provided, it will be set to a default value.
- text: str, optional
The placeholder text for the line edit. Default is ‘lineedit’.
- Returns:
list
A list containing the layout row object, the button object, and the line edit object.