Skip to content

QtWidgets.createWarningIcon()

Description

Creates a warning icon.

Syntax

JS
QtWidgets.createWarningIcon(parent: widget = null) -> WarningIcon

Parameters

Parameter Type Default Value Mandatory Description
parent widget null ❌ No The parent widget to which the created WarningIcon belongs. If not specified, the created icon is widgetless.

Return value

Type Description
WarningIcon A new WarningIcon object.

Example

JS
let result = QtWidgets.createWarningIcon()
console.info(result)

See Also

Last update: 14 August 2025, 18:47