Skip to content

setWidth()

Set the object's width.

label.setWidth(width)

Parameters

label.setWidth(width)
Parameter Type Default Description
width int or float required The new width, in pixels.