19 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
20 Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged)
21 Q_PROPERTY(Corners corners READ corners WRITE setCorners NOTIFY cornersChanged)
22#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
23 QML_NAMED_ELEMENT(RoundRectangle)
31 BottomLeftCorner = 0x4,
32 BottomRightCorner = 0x8,
33 TopCorner = TopLeftCorner | TopRightCorner,
34 BottomCorner = BottomLeftCorner| BottomRightCorner,
35 LeftCorner = TopLeftCorner| BottomLeftCorner,
36 RightCorner = TopRightCorner| BottomRightCorner,
37 AllCorner = TopCorner | BottomCorner
39 Q_DECLARE_FLAGS(Corners, Corner)
46 void setColor(
const QColor &color);
49 void setRadius(qreal radius);
51 DQuickRectangle::Corners corners()
const;
52 void setCorners(Corners corners);
55 void invalidateSceneGraph();
60 void cornersChanged();
63 QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *)
override;
72 void releaseResources()
override;