From 42c6991a8f20e1d54da485ad30bf58cd51b0e0eb Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Tue, 5 Apr 2022 10:01:28 +0200 Subject: [PATCH] QML: Fix error message formatting in 8. tutorial Signed-off-by: Juraj Oravec --- qml/articles/8.Extension_settings.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/articles/8.Extension_settings.md b/qml/articles/8.Extension_settings.md index 902d0f8..8d643fb 100644 --- a/qml/articles/8.Extension_settings.md +++ b/qml/articles/8.Extension_settings.md @@ -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