How to impliment UCommonListView event in C++

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.

I’m not sure it’s possible

Inside of listview from which common inherits from, the main delegates are private.

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.

Thanks for the reply! I just want to make my BPs as simple as possible. I’m gonna go implement those functions in BP and look for the way.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.