Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickvectorimage_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 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
4#ifndef QQUICKVECTORIMAGE_P_H
5#define QQUICKVECTORIMAGE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QQuickItem>
19#include <QtQuickVectorImage/qtquickvectorimageexports.h>
20
22
24
25class Q_QUICKVECTORIMAGE_EXPORT QQuickVectorImage : public QQuickItem
26{
28
29 Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged)
30 Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode NOTIFY fillModeChanged)
31 QML_NAMED_ELEMENT(VectorImage)
32
33public:
40 Q_ENUM(FillMode)
41
42 QQuickVectorImage(QQuickItem *parent = nullptr);
43
44 QUrl source() const;
45 void setSource(const QUrl &source);
46
47 FillMode fillMode() const;
48 void setFillMode(FillMode newFillMode);
49
53
54private slots:
55 void updateSvgItemScale();
56
57private:
58 Q_DISABLE_COPY(QQuickVectorImage)
59 Q_DECLARE_PRIVATE(QQuickVectorImage)
60};
61
63
64#endif // QQUICKVECTORIMAGE_P_H
65
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
GLenum fillMode
GLsizei GLsizei GLchar * source
#define QML_NAMED_ELEMENT(NAME)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define slots
#define signals