Results 1 to 4 of 4

Thread: Error - when adding the qml file to the project.

  1. #1
    Join Date
    Jul 2016
    Posts
    53
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Windows Android

    Default 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

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Error - when adding the qml file to the project.

    You forgot to post the respective code of main.qml

    Cheers,
    _

  3. #3
    Join Date
    Jul 2016
    Posts
    53
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Windows Android

    Default Re: Error - when adding the qml file to the project.

    Code Snippet: main.qml
    Qt Code:
    1. import QtQuick 2.3
    2. import QtQuick.Controls 1.2
    3.  
    4. ApplicationWindow {
    5. id: appWindow
    6. width: 800
    7. height: 600
    8. title: "MapsV1"
    9.  
    10. Login {}
    11.  
    12. listlortalitems {} //Here the error arises.
    13.  
    14. }//ApplicationWindow
    To copy to clipboard, switch view to plain text mode 
    Last edited by anda_skoa; 20th September 2016 at 17:28. Reason: missing [code] tags

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default 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,
    _

Similar Threads

  1. Replies: 0
    Last Post: 17th September 2015, 21:03
  2. Replies: 4
    Last Post: 29th May 2015, 17:27
  3. Replies: 1
    Last Post: 25th November 2013, 04:59
  4. Extra qualification error while compiling the project file
    By amit_pansuria in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2007, 07:56
  5. adding a qt-ui to a non-qt project, dll
    By TheKedge in forum Qt Programming
    Replies: 3
    Last Post: 28th February 2007, 17:08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.