Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.5.0, 6.5.6
Description
Methods like toLowerCase() works for string but not character, got warning:"Member "toLowerCase" not found on type QJSPrimitiveValue [missing-property]"
Snippet to reproduce the issue:
import QtQuick Window { id: window width: 640 height: 480 visible: true title: qsTr("Hello World") Component.onCompleted: { let s = "hello" console.log(s[0].toLowerCase()) //console.log(s.toLowerCase()) // this is fine } }