I'm currently developing a game (class requirement) similar to Are you Smarter than a 5th grader.

Seeing this, I should be able to retrieve the questions from a .txt file which I can do. The problem is that I want to send the values that I got from the .txt file to my javascript for processing. How do I do this?

Currently, I can get and save the questions from the text file using a QList<QString>. Although I don't know how to send these to Javascript. Based from research, I found out that you can use the QMetaObject::invokeMethod (here's the link where I found it http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html) although I'm not sure how to integrate it with my QList.

I need help! Thanks!