Thank you, i have meanwhile found a similar solution (wondering that i was able to do something rather similar i went through the code there). Now i do:
filterMassnahmen.clear();
QList<QListWidgetItem *> items = listMassnahmen->selectedItems();
for (int i = 0; i < items.size(); ++i) {
cMassnahme* anl = (cMassnahme*) items.at(i);
filterMassnahmen << anl->getID();
}
filterMassnahmen.clear();
QList<QListWidgetItem *> items = listMassnahmen->selectedItems();
for (int i = 0; i < items.size(); ++i) {
cMassnahme* anl = (cMassnahme*) items.at(i);
filterMassnahmen << anl->getID();
}
To copy to clipboard, switch view to plain text mode
so seems i can easily convert a single item to cMassnahme but not the complete QList. But i have to acknowledge i still don't understand this typecasting thingy... can you tell me where i can read about it?
Bookmarks