PDA

View Full Version : case insensitive comparison.



munna
7th May 2006, 16:14
Hi,

How can compare two QStrings case insensitively ?

For ex: "Data" == "data" should return true

Thanks a lot.

jacek
7th May 2006, 16:27
Use:
str1.toUpper() == str2.toUpper()or write your own version of compare().