Not the first one, that is a URL as input.
My guess is that both other ones should work.
If you want to be sure use QFileDialog to get the filename and have a look at it.
Btw, I don't think there is a need for the toString() call, just send the QUrl to the QML engine.
Cheers,
_
Bookmarks