Answer the question
In order to leave comments, you need to log in
Qt, ListWidget update?
ui->ListDevice->clear();
int k = 1;
for(QVector< CDevice >::iterator it = arrDevice.begin(); it != arrDevice.end(); it++){
QListWidgetItem *itemDevice = new QListWidgetItem;
itemDevice->setText(it->getName());
ui->ListDevice->insertItem(k,itemDevice);
k++;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question