List of custom widgets in QtCreator



Hey Guys,

So my question is:

I am trying to create a custom widget(small example: a widget with 3 labels), but for each widget, I would change the text on the 3 labels.

And then I would like to insert into a list of widgets.

I tried alot this, but I can’t find a proper tutorial or something.

If you guys could help me would be so much awesome!

Thank you!


Don’t one just need to pass three strings into the constructor, and use those for the labels one create? Or even more fancy by supplying the constructor a list of strings, then iterate and create a label for each.