PDA

View Full Version : Error - when adding the qml file to the project.



Mathan
19th September 2016, 16:28
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

anda_skoa
20th September 2016, 07:09
You forgot to post the respective code of main.qml :)

Cheers,
_

Mathan
20th September 2016, 08:33
Code Snippet: main.qml


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

anda_skoa
20th September 2016, 17:29
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,
_