Hi ,
How can I create a caseinsensitive qstringlist?
So if I execute sl.remove("hello");
all items above will be removed from sl
Thanks
Printable View
Hi ,
How can I create a caseinsensitive qstringlist?
So if I execute sl.remove("hello");
all items above will be removed from sl
Thanks
QStringList itself doesn't do that, but you could use the filter() functions. They allow you to set case sensitivity. However, you would need to use a negative regexp: everything not matching "hello" should be returned. Of course you could also filter out everything that matches hello and then run through that list to remove it from the original list...
Unfortunately both options don't really give you a case insensitive list.