how we convert no' of pointer objects into a single array
i had design form(in designer) in which i have used about 20 QCheck Boxes, and when i qmake the file it generates individual pointer objects ( like *checkbox1,*checkbox2................*checkbox20 ) so it becomes difficult to me access individual checkboxes.
is there any chance to club all those objects into a single array (like checkbox[20] ) so that i can access easily
Re: how we convert no' of pointer objects into a single array
I did something similar in VB years ago.
Even with it's ease of designing forms, it couldn't do it. How can a designer know what you want an array of them?
I'm pretty sure you'll need to do that sort of stuff manually in your subclass just after the setupUi call.
Re: how we convert no' of pointer objects into a single array
Designer can't do it. You have to either write your form in code, or subclass your form and put the pointers in an array after they are created.
(Although I seem to remember that VB was able to. Granted, that was many years ago.)