Adding indexed widgets ?
-
Adding same , multiple objects in QTDesigner they are "numbered" - see attached - page , button.
I like to have them added "indexed" so they can be accessed as indexed (array) of same widgets.
( I am not sure about terminology I am using...)I have been looking at "stackedwidgets" as possible solution.
Any other idea ??

-
This is not possible automatically. You have to add the widgets you want in an array/vector by yourself.
-
OK , I plead ignorance
...
what is the correct way to add widget to an array ? -
You want to store a pointer in an array of objects --> ui->pushButton is a pointer, not an object. Use an array of pointers instead.