Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QQmlFile Class

The QQmlFile class gives access to local and remote files. More...

 #include <QQmlFile>

Public Types

enum Status { Null, Ready, Error, Loading }

Public Functions

QQmlFile()
QQmlFile(QQmlEngine *, const QUrl &)
QQmlFile(QQmlEngine *, const QString &)
~QQmlFile()
void clear()
void clear(QObject *)
bool connectDownloadProgress(QObject *, const char *)
bool connectDownloadProgress(QObject *, int)
bool connectFinished(QObject *, const char *)
bool connectFinished(QObject *, int)
const char * data() const
QByteArray dataByteArray() const
QString error() const
bool isError() const
bool isLoading() const
bool isNull() const
bool isReady() const
void load(QQmlEngine *, const QUrl &)
void load(QQmlEngine *, const QString &)
QByteArray metaData(const QString &) const
qint64 size() const
Status status() const
QUrl url() const

Static Public Members

bool bundleDirectoryExists(const QString &, QQmlEngine *)
bool bundleDirectoryExists(const QUrl &, QQmlEngine *)
bool bundleFileExists(const QString &, QQmlEngine *)
bool bundleFileExists(const QUrl &, QQmlEngine *)
QString bundleFileName(const QString & url, QQmlEngine * e)
QString bundleFileName(const QUrl & url, QQmlEngine * e)
bool isBundle(const QString & url)
bool isBundle(const QUrl & url)
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

The QQmlFile class gives access to local and remote files.

Supports file://, qrc://, bundle:// uris and whatever QNetworkAccessManager supports.

Member Type Documentation

enum QQmlFile::Status

Member Function Documentation

QQmlFile::QQmlFile()

QQmlFile::QQmlFile(QQmlEngine *, const QUrl &)

QQmlFile::QQmlFile(QQmlEngine *, const QString &)

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 &)

void QQmlFile::load(QQmlEngine *, const QString &)

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.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web