Quiz App Update, 24th aug.

closeDetta inlägg skrevs för 5 år 10 månader 29 dagar sedan, och om det är av karaktären åsikt, så reserverar jag mig för att jag mycket sannolikt kan ha ändrat den sedan dess. Är det en guide så kan det också vara så att det inte längre är applicerbart eller fungerar. Dock vill jag inte ta bort, eller orkar sortera, gamla inlägg och därför är det kvar.

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.