<div dir="ltr"><div>Hi everybody,<br><br>I have started a new activity based on babymatch. The activity is a multiple choices activity based on sentences and words.<br>I display a sentence and mutiple choices items for the kid to choose between answers.<br><br>I have done a prototype in qml displaying a sentence in a flow.<br>This sentence is made of different types of words. Words that are plain text (just there to show a normal sentence); words that will be show in color as they will have to be analysed by the user, and finally mutiple choices words.<br></div>That works.<br><div><br>This prototype can be found here: <br><a href="https://github.com/allon49/GCompris-qt/blob/41d6cdae0f036dac0f4f1a0f7fa59b89612def00/src/activities/multiple_choices_sentences/TextItem.qml">https://github.com/allon49/GCompris-qt/blob/41d6cdae0f036dac0f4f1a0f7fa59b89612def00/src/activities/multiple_choices_sentences/TextItem.qml</a>.<br><br>Now I want to implement the same thing using javascript, but I am not able to associate the items components I create to the flow element contained in my element SentenceItem.qml<br><br>I can see how the babyshape author has done this in the main qml file mutiple_choices_sentences.qml using "QtObject { id: items property alias".<br>But I don't see how to apply it to my element SentenceItem.qml as I don't know how to create an equivalent to "items" which is set using onStart: { Activity.start(items, url, levelCount, answerGlow, displayDropCircle) } in multiple_choices_sentences.qml.<br><br>the code can be found here<br><a href="https://github.com/allon49/GCompris-qt/tree/41d6cdae0f036dac0f4f1a0f7fa59b89612def00/src/activities/multiple_choices_sentences">https://github.com/allon49/GCompris-qt/tree/41d6cdae0f036dac0f4f1a0f7fa59b89612def00/src/activities/multiple_choices_sentences</a><br><br>Thanks a lot for you help if you can as I have no idea how to go over this problem.<br><br><br>Regards,<br><br>Emmanuel<br><br><br></div></div>