The comparison should probably be case insensitive. Since those are urls, I suggest you compare QUrl objects.