1

QML: Fix error message formatting in 8. tutorial

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-04-05 10:01:28 +02:00
parent 066f8dd53c
commit 42c6991a8f
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -53,11 +53,13 @@ contains some QMT element to draw stuff.
If you try to use the Qt style settings syntax
`settings.value('key', 'default')` you will receive an error message
like this one:
> "Could not convert argument 0 at"
```
"Could not convert argument 0 at"
"@file://falkon/plugins/qml_tutorial_8/main.qml:13"
"Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated."
"This will throw a JavaScript TypeError in future releases of Qt!"
Unable to get value: key not defined
```
Thus use a proper Falkon settings syntax eg.
```qml