Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16227

Needs ways to access QML databases from Qt

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.0, 4.7.1
    • None
    • All

      QML databases are created in QDeclarativeEngine::offlineStoragePath.
      For example in Windows XP: C:\Documents and Settings\frankli\Local Settings\Application Data\QML\OfflineStorage\Databases\725bd1b00b39a2977fa503c291205369.sqlite

      I cannot find a way to access this DB in Qt (since the db name changes based on when it was created). There needs to be some way to either:
      A) allow QML to create a fixed named sqlite, OR
      B) allow Qt to query the current full path to the db (to be used in QSqlDatabase::setDatabaseName)

      It is very common to need access to the same db in both Qt and QML, especially since QML code is wrapped in Qt code anyways.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            frankli Frank Li
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes