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. Project with local database - where to put them?
Forum Updated to NodeBB v4.3 + New Features

Project with local database - where to put them?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 338 Views 2 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.
  • elicatE Offline
    elicatE Offline
    elicat
    wrote on last edited by
    #1

    Hello, I remind everyone that I still feel like a junior in the development with the C ++ and QT language.
    If the project works with one or more databases, where is it better to place them?

    I ask because:

    1. the project folder is in one position
    2. When you create the executable, you are in another position
    3. Although I work on Windows, maybe the program must also be run on Linux

    I thought about creating a folder within the project
    Do I create a folder in the root root of the disk?

    Is there a correct method to make sure you can recall the database in its position?

    Saluti, Gianfranco Elicat

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Take a look at QStandardPaths. It’s the class that allows you to get the correct paths on all platforms.

      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
      3
      • elicatE Offline
        elicatE Offline
        elicat
        wrote on last edited by
        #3

        Very Well, thanks

        Saluti, Gianfranco Elicat

        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