Widget.setCanTarget

void setCanTarget(bool canTarget)

Sets whether widget can be the target of pointer events.

Parameters

canTargetwhether this widget should be able to receive pointer events