×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    4

    how to import other qml files?

    Hi all,

    I am a newbie to qt,using it little before.Now I have a question of importing other files.
    I have created a directory naming core.In this directory,I have a file naming waterpage.qml
    In the mainpage.qml,i have coded the following codes:
    import "core"

    Page{

    waterpage{id:waterpage}

    }

    But when I run the project, Igot the following error:

    Cannot assign to non-existent property "waterpage"
    waterpage{id:waterpage}

    Why this problem happened?

    Thanks for advice.

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: how to import other qml files?

    First letter if the element should be in caps. check it is the issue? save waterpage.qml as Waterpage.qml
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Nokia Developer Champion
    Join Date
    Aug 2008
    Location
    Vadodara, India.
    Posts
    910

    Re: how to import other qml files?

    I think this is duplicate post by you.. I have given answer on other post in Qt Quick Category.
    Find it on below link

    http://www.developer.nokia.com/Commu...ther-qml-files


    Also my request to you, Please do not post on two category.

    Thanks,
    Chintan.
    Nokia Developer Wiki Moderation team
    World's Greatest Speeches for Windows Phone is now available on WP Marketplace.

  4. #4
    Registered User
    Join Date
    Apr 2012
    Posts
    4

    Re: how to import other qml files?

    Thanks to kkrish and chintandave_er,and I will never post on two category.

Similar Threads

  1. how to import files in the emulator?
    By foshanzhuifeng in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2010-11-02, 07:53
  2. cannot import mmp files
    By khalid.usman7@gmail.com in forum Symbian Tools & SDKs
    Replies: 9
    Last Post: 2010-08-29, 20:24
  3. Import .sys files in carbide
    By jadeluk in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2009-09-26, 15:21
  4. Import files to existing app
    By Scolpy in forum Symbian
    Replies: 3
    Last Post: 2008-11-08, 23:14
  5. how to import jar files to eclipse sdk??.....plz help!!
    By muskan in forum General Messaging
    Replies: 0
    Last Post: 2007-07-20, 19:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×