QT 5.10 Expected token `numeric literal' bug
-
Hello I`m expierencing this strange bug in qt 5.10 but if I change the qt version to 5.8.0 everything works just fine. The error appears in this line if (lastKeyBoard !== let)
import QtQuick 2.9 import QtQuick.Window 2.2 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") property var lastKeyBoard: letRu function setKeyBoard(txt) { if(txt === "text") { if (lastKeyBoard !== let) // ERROR Expected token `numeric literal' lastKeyBoard = letRu lastKeyBoard.visible = true } } }
What could it be?
-
Hi! What's
letRu
?let
is a reserved keyword in Javascript. -
Hi! What's
letRu
?let
is a reserved keyword in Javascript.Sir, I am a newbie. Can you please help me to? I haven't even started and got that error.
https://forum.qt.io/topic/151582/qt-qml-execution-problem-after-installation?_=1698365642694 -
Sir, I am a newbie. Can you please help me to? I haven't even started and got that error.
https://forum.qt.io/topic/151582/qt-qml-execution-problem-after-installation?_=1698365642694@aurora_ns, your thread is inaccessible to me. As
post/824859
explains,qmlscene
does not support the shebang. At least, not#!/usr/bin/env -S qml
. Removing that remediated that error for me (although merely resurfacedpost/830428
). If the error is prepended with:1
, it should for you.