The current code is ... a mess. resolveFileUrl and resolveFilePath do very similar things, except that one returns a path instead of a URL. resolveFileUrl also didn't include a qrc path for static builds, instead there was a similar ifdef before the call to it.