QQmlFile Class
The QQmlFile class gives access to local and remote files. More...
Header: | #include <QQmlFile> |
Static Public Members
bool | isLocalFile(const QString &url) |
bool | isLocalFile(const QUrl &url) |
bool | isSynchronous(const QString &url) |
bool | isSynchronous(const QUrl &url) |
QString | urlToLocalFileOrQrc(const QString &url) |
QString | urlToLocalFileOrQrc(const QUrl &url) |
Detailed Description
\internal
Supports file:// and qrc:/ uris and whatever QNetworkAccessManager supports.
Member Function Documentation
[static]
bool QQmlFile::isLocalFile(const QString &url)
Returns true if url is a local file that can be opened with QFile.
Local file urls have either a qrc: or file: scheme.
Note: On Android, urls with assets: or content: scheme are also considered local files.
[static]
bool QQmlFile::isLocalFile(const QUrl &url)
Returns true if url is a local file that can be opened with QFile.
Local file urls have either a qrc:/ or file:// scheme.
Note: On Android, urls with assets:/ scheme are also considered local files.
[static]
bool QQmlFile::isSynchronous(const QString &url)
Returns true if QQmlFile will open url synchronously.
Synchronous urls have a qrc:/ or file:// scheme.
Note: On Android, urls with assets:/ scheme are also considered synchronous.
[static]
bool QQmlFile::isSynchronous(const QUrl &url)
Returns true if QQmlFile will open url synchronously.
Synchronous urls have a qrc:/ or file:// scheme.
Note: On Android, urls with assets:/ scheme are also considered synchronous.
[static]
QString QQmlFile::urlToLocalFileOrQrc(const QString &url)
If url is a local file returns a path suitable for passing to QFile. Otherwise returns an empty string.
[static]
QString QQmlFile::urlToLocalFileOrQrc(const QUrl &url)
If url is a local file returns a path suitable for passing to QFile. Otherwise returns an empty string.