Detailed Description
The QQmlFile class gives access to local and remote files.
Supports file://, qrc://, bundle:// uris and whatever QNetworkAccessManager supports.
Member Function Documentation
QQmlFile::QQmlFile()
QQmlFile::QQmlFile(QQmlEngine *, const QUrl &)
QQmlFile::~QQmlFile()
bool QQmlFile::bundleDirectoryExists(const QString &, QQmlEngine *) [static]
bool QQmlFile::bundleDirectoryExists(const QUrl &, QQmlEngine *) [static]
bool QQmlFile::bundleFileExists(const QString &, QQmlEngine *) [static]
bool QQmlFile::bundleFileExists(const QUrl &, QQmlEngine *) [static]
QString QQmlFile::bundleFileName(const QString & url, QQmlEngine * e) [static]
Returns the file name for the bundle file referenced by url or an empty string if url isn't a bundle url.
QString QQmlFile::bundleFileName(const QUrl & url, QQmlEngine * e) [static]
Returns the file name for the bundle file referenced by url or an empty string if url isn't a bundle url.
void QQmlFile::clear()
void QQmlFile::clear(QObject *)
bool QQmlFile::connectDownloadProgress(QObject *, const char *)
bool QQmlFile::connectDownloadProgress(QObject *, int)
bool QQmlFile::connectFinished(QObject *, const char *)
bool QQmlFile::connectFinished(QObject *, int)
const char * QQmlFile::data() const
QByteArray QQmlFile::dataByteArray() const
QString QQmlFile::error() const
bool QQmlFile::isBundle(const QString & url) [static]
Returns true if url is a bundle.
Bundle urls have a bundle:// scheme.
bool QQmlFile::isBundle(const QUrl & url) [static]
Returns true if url is a bundle.
Bundle urls have a bundle:// scheme.
bool QQmlFile::isError() const
bool QQmlFile::isLoading() const
bool QQmlFile::isLocalFile(const QString & url) [static]
Returns true if url is a local file that can be opened with QFile.
Local file urls have either a qrc:// or file:// scheme.
bool QQmlFile::isLocalFile(const QUrl & url) [static]
Returns true if url is a local file that can be opened with QFile.
Local file urls have either a qrc:// or file:// scheme.
bool QQmlFile::isNull() const
bool QQmlFile::isReady() const
bool QQmlFile::isSynchronous(const QString & url) [static]
Returns true if QQmlFile will open url synchronously.
Synchronous urls have a qrc://, file://, or bundle:// scheme.
bool QQmlFile::isSynchronous(const QUrl & url) [static]
Returns true if QQmlFile will open url synchronously.
Synchronous urls have a qrc://, file://, or bundle:// scheme.
void QQmlFile::load(QQmlEngine *, const QUrl &)
QByteArray QQmlFile::metaData(const QString &) const
qint64 QQmlFile::size() const
Status QQmlFile::status() const
QUrl QQmlFile::url() const
QString QQmlFile::urlToLocalFileOrQrc(const QString & url) [static]
If url is a local file returns a path suitable for passing to QFile. Otherwise returns an empty string.
QString QQmlFile::urlToLocalFileOrQrc(const QUrl & url) [static]
If url is a local file returns a path suitable for passing to QFile. Otherwise returns an empty string.