change dirname's type to QUrl