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. How to save data in the database("QSQLITE")?
Qt 6.11 is out! See what's new in the release blog

How to save data in the database("QSQLITE")?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.0k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I am using SQLite as database. I am able to connect to the database and i have also inserted data into the database but while running the application again i am not able to retrieve that information. So how can i make the information to last beyond the termination of the application ?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      This is not how databases work. Data has been stored at the time a transaction has been committed. If it is not, there's something wrong with your code - which you may provide for further assistance.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        [quote author="Lukas Geyer" date="1326110211"]This is not how databases work. Data has been stored at the time a transaction has been committed. If it is not, there's something wrong with your code - which you may provide for further assistance.[/quote]

        ok i will check my code if no solution i found i will post here.

        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