05-11-2013 01:31 AM
Hello everyone, total newbie here!
I'd like to save about 20 sentences and then have an action that will pick one of them at random and then display it on a text area. How do I do it?
Oh, and I would also like to do the same with images, store them and choose one at random. So how do I do that?
Thanks very much!
05-11-2013 09:58 AM
Split this into simpler tasks:
Start from creating a page with ImageView and TextArea.
Logic is easier to implement in C++, this document describes the integration:
Try setting a static text and image programmatically.
When this is working, create a list of sentences and their corresponding image URLs, create a function to pick a random one, call it from action handler in QML.