76 #ifndef QT_NO_TEXTBROWSER The QVariant class acts like a union for the most common Qt data types.
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.
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
bool isNull() const
Returns true if it is a null image, otherwise returns false.
QString & prepend(QChar c)
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static Q_GUI_EXPORT ExternalImageLoaderFunction externalLoader
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
T * qobject_cast(QObject *object)
QUrl source
the name of the displayed document.
bool load(QIODevice *device, const char *format)
This function reads a QImage from the given device.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
bool loadFromData(const uchar *buf, uint len, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor)
Loads a pixmap from the len first bytes of the given binary data.
QObject * parent() const
Returns a pointer to the parent object.
The QTextBrowser class provides a rich text browser with hypertext navigation.
void addResource(int type, const QUrl &name, const QVariant &resource)
Adds the resource resource to the resource cache, using type and name as identifiers.
The QPixmap class is an off-screen image representation that can be used as a paint device...
QVariant resource(int type, const QUrl &name) const
Returns data of the specified type from the resource with the given name.
static QUrl fromEncoded(const QByteArray &url)
Parses input and returns the corresponding QUrl.
bool isNull() const
Returns true if this is a null pixmap; otherwise returns false.
QString name() const
Returns the name of the image.
T qvariant_cast(const QVariant &value)
Returns the given value converted to the template type T.