838 QDeclarativePixmap::tr(
"Failed to get image from provider: %1").arg(url.
toString()));
851 if (
readImage(url, &f, &image, &errorString, &readSize, requestSize)) {
856 errorString = QDeclarativePixmap::tr(
"Cannot open: %1").
arg(url.
toString());
ImageType
Defines the type of image supported by this image provider.
static QString urlToLocalFileOrQrc(const QUrl &url)
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
QString toString(FormattingOptions options=None) const
Returns the human-displayable string representation of the URL.
bool isNull() const
Returns true if it is a null image, otherwise returns false.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QDeclarativeImageProvider::ImageType getImageProviderType(const QUrl &url)
The QImage class provides a hardware-independent image representation that allows direct access to th...
QString scheme() const
Returns the scheme of the URL.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QImage getImageFromProvider(const QUrl &url, QSize *size, const QSize &req_size)
The QFile class provides an interface for reading from and writing to files.
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QSize class defines the size of a two-dimensional object using integer point precision.
static bool readImage(const QUrl &url, QIODevice *dev, QImage *image, QString *errorString, QSize *impsize, const QSize &requestSize)
bool isNull() const
Returns true if this is a null pixmap; otherwise returns false.
QPixmap getPixmapFromProvider(const QUrl &url, QSize *size, const QSize &req_size)