32 Q_PROPERTY(
bool invertible READ isInvertible WRITE setInvertible NOTIFY invertibleChanged)
33 Q_PROPERTY(
qreal activeTimeout READ activeTimeout WRITE setActiveTimeout NOTIFY activeTimeoutChanged)
35 Q_PROPERTY(
qreal rotationScale READ rotationScale WRITE setRotationScale NOTIFY rotationScaleChanged)
37 Q_PROPERTY(
qreal targetScaleMultiplier READ targetScaleMultiplier WRITE setTargetScaleMultiplier NOTIFY targetScaleMultiplierChanged)
38 Q_PROPERTY(
bool targetTransformAroundCursor READ isTargetTransformAroundCursor WRITE setTargetTransformAroundCursor NOTIFY targetTransformAroundCursorChanged)
39 Q_PROPERTY(
bool blocking READ isBlocking WRITE setBlocking NOTIFY blockingChanged REVISION(6, 3))
47 Qt::Orientation orientation() const;
48 void setOrientation(
Qt::Orientation orientation);
50 bool isInvertible() const;
51 void setInvertible(
bool invertible);
53 qreal activeTimeout() const;
56 qreal rotation() const;
57 void setRotation(
qreal rotation);
59 qreal rotationScale() const;
60 void setRotationScale(
qreal rotationScale);
65 qreal targetScaleMultiplier() const;
66 void setTargetScaleMultiplier(
qreal targetScaleMultiplier);
68 bool isTargetTransformAroundCursor() const;
69 void setTargetTransformAroundCursor(
bool ttac);
71 bool isBlocking() const;
72 void setBlocking(
bool blocking);
77 void orientationChanged();
78 void invertibleChanged();
79 void activeTimeoutChanged();
80 void rotationChanged();
81 void rotationScaleChanged();
82 void propertyChanged();
83 void targetScaleMultiplierChanged();
84 void targetTransformAroundCursorChanged();
90 void onTargetChanged(
QQuickItem *oldTarget) override;
91 void onActiveChanged() override;
args<< 1<< 2;QJSValue threeAgain=fun.call(args);QString fileName="helloworld.qs";QFile scriptFile(fileName);if(!scriptFile.open(QIODevice::ReadOnly)) QTextStream stream(&scriptFile);QString contents=stream.readAll();scriptFile.close();myEngine.evaluate(contents, fileName);myEngine.globalObject().setProperty("myNumber", 123);...QJSValue myNumberPlusOne=myEngine.evaluate("myNumber + 1");QJSValue result=myEngine.evaluate(...);if(result.isError()) qDebug()<< "Uncaught exception at line"<< result.property("lineNumber").toInt()<< ":"<< result.toString();QPushButton *button=new QPushButton;QJSValue scriptButton=myEngine.newQObject(button);myEngine.globalObject().setProperty("button", scriptButton);myEngine.evaluate("button.checkable = true");qDebug()<< scriptButton.property("checkable").toBool();scriptButton.property("show").call();QJSEngine engine;QObject *myQObject=new QObject();myQObject- setProperty)("dynamicProperty", 3)