Avoid using QUrl::toString if you can.  Here it would be better to do if (url.scheme() == "vk" && url.host() == "song"), and then get the path out with url.path().section('/', ...