diff options
Diffstat (limited to 'examples/qml/tutorials')
| -rw-r--r-- | examples/qml/tutorials/extending-qml-advanced/adding/doc/adding.rst | 4 | ||||
| -rw-r--r-- | examples/qml/tutorials/extending-qml-advanced/properties/doc/properties.rst | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/qml/tutorials/extending-qml-advanced/adding/doc/adding.rst b/examples/qml/tutorials/extending-qml-advanced/adding/doc/adding.rst index d06ff0a5a..4c1b3bdae 100644 --- a/examples/qml/tutorials/extending-qml-advanced/adding/doc/adding.rst +++ b/examples/qml/tutorials/extending-qml-advanced/adding/doc/adding.rst @@ -18,12 +18,12 @@ The ``Person`` type can be used from QML like this: Declare the Person Class ------------------------ -All QML types map to C++ types. Here we declare a basic C++ Person class +All QML types map to C++ types. Here we declare a basic C++ Person class with the two properties we want accessible on the QML type - name and shoeSize. Although in this example we use the same name for the C++ class as the QML type, the C++ class can be named differently, or appear in a namespace. -The Person class implementation is quite basic. The property accessors simply +The Person class implementation is quite basic. The property accessors simply return members of the object instance. .. code-block:: python diff --git a/examples/qml/tutorials/extending-qml-advanced/properties/doc/properties.rst b/examples/qml/tutorials/extending-qml-advanced/properties/doc/properties.rst index fd0c6d474..9337ad2ab 100644 --- a/examples/qml/tutorials/extending-qml-advanced/properties/doc/properties.rst +++ b/examples/qml/tutorials/extending-qml-advanced/properties/doc/properties.rst @@ -75,10 +75,10 @@ The class contains a member to store the celebrant object, and also a list member storing the Person instances. In QML, the type of a list properties - and the guests property is a list of -people - are all of type ListProperty. ListProperty is simple value -type that contains a set of functions. QML calls these functions +people - are all of type ListProperty. ListProperty is simple value +type that contains a set of functions. QML calls these functions whenever it needs to read from, write to or otherwise interact with -the list. In addition to concrete lists like the people list used in this +the list. In addition to concrete lists like the people list used in this example, the use of QQmlListProperty allows for "virtual lists" and other advanced scenarios. |
