more in detail at the moment i have a list (vector) contains the objects. this list will be grow while the application runs. because i don't want to rearrange all the object in the layout i just add the last one:
vector<Object> list = someObjects;
for (int i = lastCount; i < list.size(); i++){
label->setText(list[i]->toString());
lastCount++;
((QGridLayout*) ui.
view->layout
())->addWidget
(label, i,
0);
ui.view->repaint();
}
vector<Object> list = someObjects;
for (int i = lastCount; i < list.size(); i++){
QLabel *label= new QLabel();
label->setText(list[i]->toString());
lastCount++;
((QGridLayout*) ui.view->layout())->addWidget(label, i, 0);
ui.view->repaint();
}
To copy to clipboard, switch view to plain text mode
however i like to arrange them so:
third object
second object
first object
thx
Bookmarks