ToolButton.setIconWidget

Sets icon as the widget used as icon on button. If icon_widget is NULL the icon is determined by the "stock_id" property. If the "stock_id" property is also NULL, button will not have an icon. Since 2.4

class ToolButton
void
setIconWidget

Parameters

iconWidget Widget

the widget used as icon, or NULL. [allow-none]

Meta