What about foreach ?
Qt Code:
... }To copy to clipboard, switch view to plain text mode
What about foreach ?
Qt Code:
... }To copy to clipboard, switch view to plain text mode
I'm a rebel in the S.D.G.
how can I use foreach?what does it do?
but is i do with a foreach,i have the same problem.
foreach (QWidget *widget, list) {
v.at(0)->getScreenDirectionlist(&list);
}
What I need is to link my pointers of the widget that I have got, with the whole list in a for. this1->getScreenDirectionlist(&list); but with a for to make shorter the code.
No, you have to do this
Qt Code:
widget->getScreenDirectionlist(some_other_list); }To copy to clipboard, switch view to plain text mode
There is a little bit confusion about v and list. What are they for?
I'm a rebel in the S.D.G.
Bookmarks