19 void setInvert(
bool invert);
21 QRectF rect()
const override {
return QRect(0, 0,
static_cast<int>(m_width),
static_cast<int>(m_height)); }
22 void sync(QQuickItem *item)
override;
23 QImage process(
const QImage &sourceImage, QPainter::RenderHints hints)
override;
24 void preprocess()
override;
27 void onMaskTextureChanged();
30 bool m_invert =
false;
33 QQuickItem *m_item =
nullptr;
35 QPointer<QSGTextureProvider> m_maskProvider =
nullptr;