Error - when adding the qml file to the project.
Hi,
I just added an listportalitems.qml under the Resources/Qml.qrc/qml. When I try add in main.qml, The error was shown
qrc:/qml/main.qml:48 Cannot assign to non-existent property "listportalitems"
An Redline appears. I hover the redline the message shown as - "Invalid PropertyName listportalitems.qml" (M16)
How to get rid of this error?
Thanks in advance
Re: Error - when adding the qml file to the project.
You forgot to post the respective code of main.qml :)
Cheers,
_
Re: Error - when adding the qml file to the project.
Code Snippet: main.qml
Code:
import QtQuick 2.3
import QtQuick.Controls 1.2
ApplicationWindow {
id: appWindow
width: 800
height: 600
title: "MapsV1"
Login {}
listlortalitems {} //Here the error arises.
}//ApplicationWindow
Re: Error - when adding the qml file to the project.
Element types need to start with an upper case character, lowercase start characters indicate a property.
Rename the file to start with a capital L
Cheers,
_