As long as you're not using QT_NO_CAST_FROM_ASCII, I think it would. QString has a char* constructor, and QUrl has a QString constructor.