Obsolete Members for ContentItem

The following members of QML type ContentItem are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Methods

Method Documentation

bool copy(dir)

If the url is a local file, copy the file to dir

Returns true if the file was copied successfully, false on error or if the url wasn't a local file.


bool copy(dir, fileName)

If the url is a local file, copy the file to dir and rename to fileName

Returns true if the file was copied successfully, false on error or if the url wasn't a local file.


string toDataURI()

Returns the ContentItem base64 encoded with the mimetype as a properly formated dataUri