Hoppa till innehåll

Etikett: App Showcase

Quiz App Update, 24th aug.

Hi all,
Back from a lot of work and studying for an exam. Back to my app submissions to the Ubuntu App Showdown.
The Quiz app, which I’ve written about earlier, is coming along nicely. Yesterday and today, I’ve been working on rebuilding some of the backend. Previously Quiz was only able to add a question, with an answer, and then list all of the questions, and if you wanted to answer a question you had to write it down. Then I added four buttons, one which contained the correct answer – no need to type it yourself.
Now, I removed those old buttons, updated the tables for the questions database so that you can add alternatives to your question, and each of them (max four, min two) gets an old button automagically since I’ve rebuild the backend to use ListModels instead of manually doing it. Each alternative is saved in an array, foreach.append to ListModel = done!
Result is found in the images above. I just need to deactivate all of the buttons when one alternative is pressed, instead of just the one that got pressed. Also the alternatives will be in a random order later on.
Later on I will create a way for the app to download new questions from a server, and also bundle the app with some inital questions. Untill then you have to add your own.

Kommentarer är stängda