Skip to main content

ClipRect

Overview​

Clips to a rectangular area and removes whatever overflows it. For example, use it to hide content that spills outside the area.

Properties​

PropertyDescriptionValuesDefault
clipperSets the rectangular area to clip to directly. Leave it unset, or give it a width or height of 0, and the clip follows the size of the child widget.Rectangular areaNot set
clipBehaviorSets how edges are handled when clipping to the rectangular bounds.none, hardEdge, antiAlias, antiAliasWithSaveLayerhardEdge