CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
qml_sgs_image_item.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <QQuickItem>
12
13namespace CaptureMoment::UI {
14
24{
25 Q_OBJECT
26
27 // Expose properties from SGSImageItem to QML
28 // These properties map directly to getter/setter methods and signals defined in BaseImageItem.
29 Q_PROPERTY(float zoom READ zoom WRITE setZoom NOTIFY zoomChanged)
30 Q_PROPERTY(QPointF pan READ pan WRITE setPan NOTIFY panChanged)
31 Q_PROPERTY(int imageWidth READ imageWidth NOTIFY imageSizeChanged)
32 Q_PROPERTY(int imageHeight READ imageHeight NOTIFY imageSizeChanged)
33
34public:
39 explicit QMLSGSImageItem(QQuickItem* parent = nullptr);
40
45};
46
47} // namespace CaptureMoment::UI
QQuickItem for displaying images using QSGSimpleTextureNode, directly usable in QML.
void setZoom(float zoom) override
Sets the zoom level.
void setPan(const QPointF &pan) override
Sets the pan offset.
QQuickItem that renders an image via QSGSimpleTextureNode.
void panChanged(const QPointF &pan)
Signal emitted when the pan offset changes.
void imageSizeChanged()
Signal emitted when the image dimensions change (width or height).
void zoomChanged(float zoom)
Signal emitted when the zoom value changes.
Simple texture-based image display (Qt6 - QSGSimpleTextureNode) using BaseImageItem for common state.
CaptureMoment — footer