Quote Originally Posted by prchakal View Post
But what the correct syntax?

Qt Code:
  1. QString fullFilePath = QUrl::fromLocalFile("file://C:/PRProjector-Project/data/images/allthingsnew-background.jpg").toString()
  2. or
  3. QString fullFilePath = QUrl::fromLocalFile("C:/PRProjector-Project/data/images/allthingsnew-background.jpg").toString()
  4. or
  5. QString fullFilePath = QUrl::fromLocalFile("C:\\PRProjector-Project\\data\\images\\allthingsnew-background.jpg").toString()
To copy to clipboard, switch view to plain text mode 
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,
_