![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQml More...
#include <qqmlfile.h>
Static Public Member Functions | |
static bool | isSynchronous (const QString &url) |
static bool | isSynchronous (const QUrl &url) |
static bool | isLocalFile (const QString &url) |
Returns true if url is a local file that can be opened with \l{QFile}. | |
static bool | isLocalFile (const QUrl &url) |
Returns true if url is a local file that can be opened with \l{QFile}. | |
static QString | urlToLocalFileOrQrc (const QString &) |
If url is a local file returns a path suitable for passing to \l{QFile}. | |
static QString | urlToLocalFileOrQrc (const QUrl &) |
If url is a local file returns a path suitable for passing to \l{QFile}. |
\inmodule QtQml
The QQmlFile class provides static utility methods to categorize URLs.
QQmlFile provides some static utility methods to categorize URLs and file names the way \l{QQmlEngine} does when loading content from them.
Definition at line 18 of file qqmlfile.h.
|
static |
Returns true
if url is a local file that can be opened with \l{QFile}.
Otherwise returns false
. Local file urls have either a {qrc:} or
{file:} scheme.
{assets:} or
{content:} scheme are also considered local files. Definition at line 665 of file qqmlfile.cpp.
|
static |
Returns true
if url is a local file that can be opened with \l{QFile}.
Otherwise returns false
. Local file urls have either a {qrc:} or
{file:} scheme.
{assets:} or
{content:} scheme are also considered local files. Definition at line 584 of file qqmlfile.cpp.
|
static |
Returns true
if QQmlFile will open url synchronously. Otherwise returns false
. Synchronous urls have a {qrc:} or
{file:} scheme.
{assets:} or
{content:} scheme are also considered synchronous. Definition at line 529 of file qqmlfile.cpp.
|
static |
Returns true
if QQmlFile will open url synchronously. Otherwise returns false
. Synchronous urls have a {qrc:} or
{file:} scheme.
{assets:} or
{content:} scheme are also considered synchronous. Definition at line 499 of file qqmlfile.cpp.
If url is a local file returns a path suitable for passing to \l{QFile}.
Otherwise returns an empty string.
Definition at line 763 of file qqmlfile.cpp.
If url is a local file returns a path suitable for passing to \l{QFile}.
Otherwise returns an empty string.
Definition at line 709 of file qqmlfile.cpp.