PDA

View Full Version : tutorial about qt and LibreOffice Base



Saurian
27th April 2012, 20:01
Hi everyone! I'm new in Linux and I'm new in Qt. I want to make a little app for my "Heat and Mass Transfer" classes and I need to use a database and make some interpolation. Working in Ubuntu I made my database in Libre Office Base. So, being new in these I want to ask you how can I connect and read some information from a file. Do you have a link with an example how to open a sql file and read data? I know that this action depends by the type of the database ( sqlite, mysql, etc. ). For Libre Office Base what driver do I need? If it helps, my file extension is .odb. Thanks in advance for any help!

ChrisW67
28th April 2012, 11:24
If you made a default database with LibreOffice Base then you have a HyperSQL database (http://hsqldb.org/). HyperSQL is a Java-based database engine. As far as I know there is no direct C++ or C interface to that data, only indirectly via JDBC, and definitely no support in Qt.