Widget.setCanTarget

void setCanTarget(bool canTarget) nothrow

Sets whether widget can be the target of pointer events.

Parameters

canTargetwhether this widget should be able to receive pointer events