Results 1 to 3 of 3

Thread: Databases?

  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Databases?

    Hi, I've had limited database experience so my knowledge is rather limited. I was wondering whether it's possible to create a database which I would obviously use in my program that wouldn't require the user to install additional software packages for e.g. MS Access or the like and that I could use simply as a resource file in my project and for it to be recognised? I see that Qt has some SQL classes, but I'm not sure whether that would require the user to install some sort of SQL addon? I can obviously use a .txt document for this purpose but I was wondering whether there are other options? Possibly ones that users won't be able to open or if they do, they will just get gobbledygook.

    Oh forgot to mention, I'm not 100% sure at the moment, but my database won't that big and the plan is to be able to load the whole of it into memory upon starting my application, so that's another consideration that I have.
    Last edited by Atomic_Sheep; 5th May 2012 at 14:38.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Databases?

    You can use SQLite. For that no installation is required and Qt offers a driver for that out of the box. Only you can't use it with the resource system of Qt. But that is not possibly for any database. So use SQLite with a normal file or put a SQL file in the resource system and load it into memory when starting up the application.

  3. #3
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Databases?

    Thanks I'll look into it.

Similar Threads

  1. New book on Qt and databases
    By RolandHughes in forum General Discussion
    Replies: 0
    Last Post: 1st February 2012, 20:41
  2. Qt and databases
    By gt.beta2 in forum Newbie
    Replies: 6
    Last Post: 18th February 2009, 09:39
  3. dictionary databases
    By rishiraj in forum Newbie
    Replies: 1
    Last Post: 5th January 2009, 09:30
  4. Qt, Databases & the DAO Pattern
    By Paul Drummond in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2006, 17:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.