Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Saving content of a table

    General and Desktop
    3
    4
    595
    Loading More Posts
    • 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.
    • Robey Mardon
      Robey Mardon last edited by Robey Mardon

      Is it possible to "save" the content/data of a table locally? For example, I see a lot of application that you insert items in a table and you close, when you open again everything is there and there's no database installed or a database file - or at least I couldn't find, what they do?

      1 Reply Last reply Reply Quote 0
      • L
        Leonardo last edited by

        They are probably saving it on some hidden user directory. On Windows, check the %AppData% folder.

        Robey Mardon 1 Reply Last reply Reply Quote 1
        • Robey Mardon
          Robey Mardon @Leonardo last edited by

          @Leonardo You're right, it might not be with a database extension but it has some files to keep states and so on.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Hi,

            You can use QStandardPaths to get the correct folder where to store e.g. an SQLite file or anything you may need for your application to run

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • First post
              Last post