13QQuickWindowCapture::QQuickWindowCapture(QObject *parent) : QWindowCapture(parent)
15 connect(
this, &QWindowCapture::maximumFrameRateChanged,
this,
16 [
this](std::optional<qreal> frameRate) {
17 emit QQuickWindowCapture::maximumFrameRateChanged(windowFrameRateToReal(frameRate));
38void QQuickWindowCapture::qmlSetMaximumFrameRate(qreal frameRate)
40 if (qFuzzyCompare(frameRate,
static_cast<qreal>(-1.f)))
41 setMaximumFrameRate(std::nullopt);
42 else if (frameRate > 0.f)
43 setMaximumFrameRate(frameRate);