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. SQLite specify filename of database file?
Forum Update on Monday, May 27th 2025

SQLite specify filename of database file?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 231 Views
  • 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.
  • S Offline
    S Offline
    shokarta
    wrote on 26 Apr 2021, 07:22 last edited by
    #1

    Dear all,

    is there a way to specify the filename of SQLite filename?
    the curret file generated automaticaly like:

    309d1e4b32c2e30bac8ccadf6a0250de.sqlite
    

    is not very purposable...

    Thank you

    1 Reply Last reply
    0
    • C Online
      C Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 26 Apr 2021, 07:29 last edited by
      #2

      You can set the database name with QSqlDatabase::setDatabaseName()

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2

      1/2

      26 Apr 2021, 07:22

      • Login

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