Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Best way to create a simple local database [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Best way to create a simple local database [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 11.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Charmaman
    wrote on last edited by
    #1

    Hello guys,

    I am rather new to Qt-Programming. I set up a little program for categorizing images. So far I am saving my informations within a QDomDocument and save/load it in a xml-file. So far everything works fine, but I need some more functions which I do not like to code by hand. I would like to have search/filter-functions and so on (e.g. like in SQL), but I do not want to install a local SQL-database, because I want it to be easy to download and use for other users.

    Is there any local-in-house-solution in Qt that I could use?
    Something that creates a database itself or at least within cpu-memory with the functionality to save and load to/from file?

    Thanks for tips!

    Charma

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      bq. SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world. The source code for SQLite is in the public domain.

      http://qt-project.org/doc/qt-4.8/sql-driver.html#qsqlite

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Charmaman
        wrote on last edited by
        #3

        Wow, thanks for the fast reply!

        That's exactly what I was looking for.

        Again, Thanks a lot!

        1 Reply Last reply
        0
        • F Offline
          F Offline
          francomartins
          wrote on last edited by
          #4

          to facilitate the creation and use of the bank sqlite, the use "SQlite Manager ":www.sqlitemanager.org , or the Firefox extension "SQlite Firefox Add-on ":https://addons.mozilla.org/pt-BR/firefox/addon/sqlite-manager/ .

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sfilippidis
            wrote on last edited by
            #5

            Yes, I would "vote" for SQLite as well! ;-)

            https://www.filippidis.name/

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Charmaman
              wrote on last edited by
              #6

              Thanks guys, I already managed to create a DB with Qt. I am using the sql-functionality of Qt itself. I did not download SQLite seperately.
              Works fine and I could already create tables in the database.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved