85 Q_PROPERTY(
qreal highlightMoveVelocity READ highlightMoveVelocity WRITE setHighlightMoveVelocity NOTIFY highlightMoveVelocityChanged)
86 Q_PROPERTY(
qreal highlightResizeVelocity READ highlightResizeVelocity WRITE setHighlightResizeVelocity NOTIFY highlightResizeVelocityChanged)
87 Q_PROPERTY(
int highlightResizeDuration READ highlightResizeDuration WRITE setHighlightResizeDuration NOTIFY highlightResizeDurationChanged)
97 Q_PROPERTY(
HeaderPositioning headerPositioning READ headerPositioning WRITE setHeaderPositioning NOTIFY headerPositioningChanged REVISION(2, 4))
98 Q_PROPERTY(
FooterPositioning footerPositioning READ footerPositioning WRITE setFooterPositioning NOTIFY footerPositioningChanged REVISION(2, 4))
114 Orientation orientation()
const;
115 void setOrientation(Orientation);
118 QString currentSection()
const;
120 void setHighlightFollowsCurrentItem(
bool)
override;
122 qreal highlightMoveVelocity()
const;
123 void setHighlightMoveVelocity(
qreal);
125 qreal highlightResizeVelocity()
const;
126 void setHighlightResizeVelocity(
qreal);
128 int highlightResizeDuration()
const;
129 void setHighlightResizeDuration(
int);
131 void setHighlightMoveDuration(
int)
override;
135 SnapMode snapMode()
const;
136 void setSnapMode(SnapMode
mode);
140 HeaderPositioning headerPositioning()
const;
141 void setHeaderPositioning(HeaderPositioning positioning);
145 FooterPositioning footerPositioning()
const;
146 void setFooterPositioning(FooterPositioning positioning);
151 void incrementCurrentIndex();
152 void decrementCurrentIndex();
166 void viewportMoved(
Qt::Orientations orient) override;
167 void keyPressEvent(
QKeyEvent *) override;
168 void geometryChange(const
QRectF &newGeometry,const
QRectF &oldGeometry) override;
170 qreal maxYExtent() const override;
171 qreal maxXExtent() const 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)