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
qquickiconimage_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QQUICKICONIMAGE_P_H
5#define QQUICKICONIMAGE_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 <QtQuick/private/qquickimage_p.h>
19#include <QtQuickControls2Impl/private/qtquickcontrols2implglobal_p.h>
20
22
24
25class Q_QUICKCONTROLS2IMPL_EXPORT QQuickIconImage : public QQuickImage
26{
28 Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged FINAL)
30 QML_NAMED_ELEMENT(IconImage)
32
33public:
34 explicit QQuickIconImage(QQuickItem *parent = nullptr);
35
36 QString name() const;
37 void setName(const QString &name);
38
39 QColor color() const;
40 void setColor(const QColor &color);
41
42 void setSource(const QUrl &url) override;
43
45 void nameChanged();
47
48protected:
49 void componentComplete() override;
50 void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
51 void itemChange(ItemChange change, const ItemChangeData &value) override;
52 void pixmapChange() override;
53
55 Q_DISABLE_COPY(QQuickIconImage)
56 Q_DECLARE_PRIVATE(QQuickIconImage)
57};
58
60
61#endif // QQUICKICONIMAGE_P_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
Definition qquickitem.h:144
\inmodule QtCore\reentrant
Definition qrect.h:484
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
void colorChanged()
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint color
[2]
GLuint name
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define explicit
QUrl url("example.com")
[constructor-url-reference]
myFilter setColor(QColor(128, 0, 0))
\inmodule QtQuick
Definition qquickitem.h:159