I made a UCommonUserWidget class to make my shop widget, there is a UCommonListView in my widget BP, and the UCommonListView has a event called “OnItemClicked”, how could I implement this event in C++?
Buttons have delegates like MyButton->OnClicked.AddDynamic(), but UCommonUserWidget has none. I checked ListView.h and found nothing.
I searched Google, YouTube and Udemy, there are just very few basic info on ListView.
And BP_OnItemClicked is not returned in any of the functions, so there is not getter :(.
If they were set as protected then you will still have a shot at it but in the current implementation I think they are marked for blueprint use only (via BlueprintAssignable).
Perhaps the common version has a different binding mechanism akin to the enhanced input system?
You could maybe try retrieving an item as a workaround and somehow binding to embedded buttons.