Language reference¶
Qst makes use of the QML language, a declarative language mixed with Javascript. The official QML language reference eplains all core concepts in detail. In difference to a regular QML interpreter, Qst analyses the the documents before it executes them and makes additions to the QML runtime environment. It expects a certain structure and enforces some rules. The purpose of this document is, to eplain all differences.
Context properties¶
The following properties are automatically attached by the Qst QML engine to every loaded documented unless unless otherwise stated.
-
Project
project
¶ Reference to the global project object. When running a document with a
Testcase
component, an empty project item is created.
-
Testcase
test
¶ Reference to the owner test case. This property is available in
Testcase
components and in other stand-alone component definitions such as shown in the MakeProbe.qml example. It is not available in documents containing aProject
component.
QML data types¶
QML types for properties used in this reference documentation. Basic QML types are also explained in the QML language reference.
-
bool
¶ Boolean value. Can be either
true
orfalse
.
-
double
¶ 64 bit (double precision) floating point number.
-
int
¶ 32 bit signed whole number.
-
type
list
¶ List of QML objects. See also http://doc.qt.io/qt-5/qml-list.html
-
type
signal
¶ A reference to a signal attribute of a component. It is not a dedicated data type, but rather stored as
var
.signal
objects provide aconnect()
anddisconnect()
method to connect to a destination function. They are also functors and can be called like a function in order to invoke connected signal handlers.
-
type
string
¶ Free form text string. See also http://doc.qt.io/qt-5/qml-string.html
-
type
stringlist
¶ An array of strings. See also http://doc.qt.io/qt-5/qml-var.html
-
type
var
¶ Generic property type. Can hold any data type, but usually used for objects and arrays. See also http://doc.qt.io/qt-5/qml-var.html