QT 5.10 Expected token `numeric literal' bug
Solved
QML and Qt Quick
-
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