How do you get the slot index of a widget in a wrap box?

So you know how a wrap box organizes children in order from left to right, top to bottom? Are the slots organized into an array? For instance the first widget to be added to a wrap box gets slot index 0, then the next gets 1, etc like an array.

In any case, say I added 5 widgets to the wrap box at run time. Then I removed just the fourth widget through the use of an implemented delete button. How do I get the slot index of this fourth widget?

1 Like