OpenDatabaseSync in Javascript
-
Under Qt 5.3, Qt Quick 2.3
@.import QtQuick.LocalStorage 2.0 as Sql
function openDb() {
var db = Sql.openDatabaseSync("O2B", "1.0", "Settings Informations", 1000000);
}
@When I call openDb():
TypeError: Cannot call method 'openDatabaseSync' of undefinedIs this a bug? Any ideas ?
Thanks.
-
Hi,
It should be
@
Sql.LocalStorage.openDatabaseSync("O2B", "1.0", "Settings Informations", 1000000);
@