SOLVED: Storing templates
-
Hello,
Am using functions from a library that return results in template form. The library documentation says I can store these templates in a database. I looked up QList but its still not clear how to go about it. So how do I post them to a php script for mysql storage. And how do I view them in plain text format?
Thanks in advance
-
Hi,
If i understood you correctly you're getting the results as text. If you want to store them in a database your can use Qt's "Sql module":qt-project.org/doc/qt-4.8/qtsql.html
For simple presentation, a QPlainTextEdit should do the work.
-
Ok, the results come as a structure and are received by a pointer to the struct. I was thinking of harvesting the individual member values of the structure and storing them in an array, is there a way other than this?
Thanks for replying SGaist. -
It all depends on the content of your structure.
Without seeing it, it's difficult to comment on your approach.
-
Hello SGalst, this problem was SOLVED. I just can't see the "Mark as SOLVED" button.
Thanks SGalst -
Great !
There's no button, just edit the thread's title and prepend [solved] :)