Skip to content
Snippets Groups Projects
Commit 3f1dbba0 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

Minor tweaks

parent c378bfba
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ Example of switching C++ object and QML dummy. ...@@ -6,7 +6,7 @@ Example of switching C++ object and QML dummy.
context-object context-object
-------------- --------------
Make main.qml test if C++ `serviceObject` defined at runtime. Make main.qml check if C++ `serviceObject` has been defined.
If not, set it to `DummyService {}`. If not, set it to `DummyService {}`.
context-object-file context-object-file
...@@ -20,11 +20,11 @@ In `main-pure.qml`, instantiate `DummyService {}` in place of ...@@ -20,11 +20,11 @@ In `main-pure.qml`, instantiate `DummyService {}` in place of
iniital-property (Qt 5.14+) iniital-property (Qt 5.14+)
--------------------------- ---------------------------
Set `service` to `DummyService {}` by default. Set `service` property to `DummyService {}` by default.
Override it by C++ `setInitialProperties()` call. Override it by C++ `setInitialProperties()` call.
pseudo-initial-property pseudo-initial-property
----------------------- -----------------------
Initialize `service` to `DummyService {}` first. Initialize `service` property as `DummyService {}` first.
Once QML is loaded, overwrite it by C++ `setProperty()` call. Once QML loaded, overwrite it by C++ `setProperty()` call.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment