Results 1 to 3 of 3

Thread: How can I add necessary QML files when I need them?

  1. #1
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    3
    Platforms
    Windows

    Default How can I add necessary QML files when I need them?

    Hi,

    Here is my project: http://www.youtube.com/watch?v=86V15cr6r8E

    I need to launch each fruit in a right time like fruit ninja. However, when I add them in the main.qml file, I can't connect them with main.qml. Because for example, when I want to use id: rootapple which is in Apple.qml, rootapple can't be used in main.qml. It means, I can't reach any of animation in Apple.qml with if else conditions of main.qml file.

    It doens't work also with a JS file. I try a lots of way to do this, but I couldn't.

    All ideas are welcome.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How can I add necessary QML files when I need them?

    But what exactly are you having problems with? Why do you want to do anything with any animations from main.qml? Maybe you should have a look at code for "Same game" and the docs for managing dynamically created objects in Qt Quick.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    3
    Platforms
    Windows

    Default Re: How can I add necessary QML files when I need them?

    I solved this problem

    Now, only thing what I need to do is multi kill and best score. I tried to use same game as a base for high score type, however I didn't understand anything about it. For multi kill, it seems that it will be very hard to do with only using QML.

    Here is v1.0.0 : http://www.youtube.com/watch?v=uOqBVveB5os

Similar Threads

  1. Replies: 1
    Last Post: 15th August 2011, 23:26
  2. Replies: 9
    Last Post: 28th April 2010, 09:18
  3. Replies: 12
    Last Post: 17th June 2009, 05:34
  4. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 21:05
  5. how to save sequences of text files and sound files
    By nagpalma in forum Qt Programming
    Replies: 8
    Last Post: 3rd July 2007, 00:06

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.