I was wondering if anyone knew of a Qt library method that can take two QStringList and remove all of the strings contained in one list from the second list.
There is no library function in QList nor QStringList.
But you can write your own method:
void remove(QStringList& list, const QStringList& toDelete){
QStringListIterator i(toDelete);
while(i.hasNext()){
list.removeAll(i.next());
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With