prolink007
18th April 2010, 16:02
Hello,
I am working on a project currently to get my self more familiarized with qt+sqL. I would like the user to be able to press 'new' and when they do, qt will create a new database using sqL. Then the user can start modifying that database. They can save it and close it. Later they can come back and load that database or they can create another new one.
I was wondering how i would go about this? I am not sure how to get qt to create the new database.
Thanks for help in advance.
EDIT::
Actually, another question... i may know how to do this myself. If i were to use sqlite and i tried to open a connection to a non existant database, would it automatically create the database and then i could query the database to set up the tables and stuff? If that is the case, then i know how i would do this.
I am working on a project currently to get my self more familiarized with qt+sqL. I would like the user to be able to press 'new' and when they do, qt will create a new database using sqL. Then the user can start modifying that database. They can save it and close it. Later they can come back and load that database or they can create another new one.
I was wondering how i would go about this? I am not sure how to get qt to create the new database.
Thanks for help in advance.
EDIT::
Actually, another question... i may know how to do this myself. If i were to use sqlite and i tried to open a connection to a non existant database, would it automatically create the database and then i could query the database to set up the tables and stuff? If that is the case, then i know how i would do this.