Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qsvgiohandler.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
pragma
once
6
7
#
include
<
QtGui
/
qimageiohandler
.
h
>
8
9
#
ifndef
QT_NO_SVGRENDERER
10
11
QT_BEGIN_NAMESPACE
12
13
class
QImage;
14
class
QByteArray
;
15
class
QIODevice;
16
class
QVariant;
17
class
QSvgIOHandlerPrivate
;
18
19
class
QSvgIOHandler
:
public
QImageIOHandler
20
{
21
public
:
22
QSvgIOHandler
();
23
~
QSvgIOHandler
();
24
bool
canRead
()
const
override
;
25
bool
read
(QImage *image)
override
;
26
static
bool
canRead
(QIODevice *device);
27
QVariant option(
ImageOption
option)
const
override;
28
void
setOption(
ImageOption
option,
const
QVariant & value) override;
29
bool
supportsOption(
ImageOption
option)
const
override;
30
31
// Animation support for QMovie / AnimatedImage
32
bool
jumpToNextImage
()
override
;
33
bool
jumpToImage
(
int
imageNumber)
override
;
34
int
loopCount
()
const
override
;
35
int
imageCount
()
const
override
;
36
int
nextImageDelay
()
const
override
;
37
int
currentImageNumber
()
const
override
;
38
39
private
:
40
QSvgIOHandlerPrivate
*d;
41
};
42
43
QT_END_NAMESPACE
44
45
#
endif
// QT_NO_SVGRENDERER
QByteArray::FromBase64Result
\inmodule QtCore
Definition
qbytearray.h:824
QImageIOHandler::ImageOption
ImageOption
This enum describes the different options supported by QImageIOHandler.
Definition
qimageiohandler.h:42
QSvgIOHandlerPrivate
Definition
qsvgiohandler.cpp:22
QSvgIOHandler
Definition
qsvgiohandler.h:20
QSvgIOHandler::QSvgIOHandler
QSvgIOHandler()
Definition
qsvgiohandler.cpp:89
QSvgIOHandler::currentImageNumber
int currentImageNumber() const override
For image formats that support animation, this function returns the sequence number of the current im...
Definition
qsvgiohandler.cpp:294
QSvgIOHandler::jumpToImage
bool jumpToImage(int imageNumber) override
For image formats that support animation, this function jumps to the image whose sequence number is i...
Definition
qsvgiohandler.cpp:263
QSvgIOHandler::canRead
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...
Definition
qsvgiohandler.cpp:101
QSvgIOHandler::~QSvgIOHandler
~QSvgIOHandler()
Definition
qsvgiohandler.cpp:96
QSvgIOHandler::read
bool read(QImage *image) override
Read an image from the device, and stores it in image.
Definition
qsvgiohandler.cpp:123
QSvgIOHandler::imageCount
int imageCount() const override
For image formats that support animation, this function returns the number of images in the animation...
Definition
qsvgiohandler.cpp:278
QSvgIOHandler::loopCount
int loopCount() const override
For image formats that support animation, this function returns the number of times the animation sho...
Definition
qsvgiohandler.cpp:273
QSvgIOHandler::canRead
static bool canRead(QIODevice *device)
Definition
qsvgiohandler.cpp:301
QSvgIOHandler::nextImageDelay
int nextImageDelay() const override
For image formats that support animation, this function returns the number of milliseconds to wait un...
Definition
qsvgiohandler.cpp:287
QSvgIOHandler::jumpToNextImage
bool jumpToNextImage() override
For image formats that support animation, this function jumps to the next image.
Definition
qsvgiohandler.cpp:258
QSvgPlugin
Definition
main.cpp:20
QSvgPlugin::create
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
Definition
main.cpp:49
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtsvg
src
plugins
imageformats
svg
qsvgiohandler.h
Generated on
for Qt by
1.18.0