Add inventory slots for each inventory item with changing values

Hey, i’ve been working on a inventory system and I now want an inventory slot to be added for each item in my itemList.
So I wrote a function which does this, but the problem I now have is that each slot shows the same value and I want it to be so that I can just create the same slot widget but with values that change for each slot (so the first invSlot widget shows the value of the itemAmount array at the index 0 and the next for the index 1 etc.)
Hope the question is clear (don’t really know how to explain this), added pictures of my widget and the function bound to the text in the invSlot widget as well as the function that adds the widgets into my inventory widget.
Thanks in advance, any help or hint is appreciated!

Rising-Mobile,

I would recommend you take a look at this tutorial about how to create an inventory system. I was able to take that and expand upon it greatly.

In this guide it mentions how to set up the slots as widgets and to assign them to the correct array slot. Make sure to watch and understand the concepts he talks about. I have a feeling that what you are trying to do is similar to that setup so you can either add your own additions to it or go off it like I did. I would start a new project and go through the whole tutorial and afterwards give it a few days to let the knowledge soak in. If you are still having trouble let us know.

Many thanks, feels good to know there are people out there who take their time and answer questions like this,
best regards ^^