How to set ui::HBox children spacing?

Hi guys! :smile:

I’m using ui::HBox class (Cocos2d-x 3.11) to arrange image views (ui::ImageView) horizontally.
The class works, but I also need to add a space between children.
I tried different functions but nothing seems to work.
Here my tries:

HBox::setContentSize
HBox::setSize
HBox::setLayoutParameter // with a Margin object
ImageView::setContentSize
ImageView::setLayoutParameter // wtih a Margin object

any suggestion?
Thanks

Hi, Any luck on this ? I am also trying to set space between children and nothing is working out.