setIcon

Sets the window icon.

Parameters

icon

Icon bytes or path to the icon file.