Can't write into database
Unsolved
General and Desktop
-
-
@artwaw i'm working with QBS. When i don't specify the connectionName in addDataBase() function it open. I have the error "number of parameters incorrect". I think i don't have the good parameter types. I defined a QString as a TEXT is SQLite. Is it correct?
-
@artwaw here is my QBS file
import qbs Project{ name: "PlanningModrian" Product{ files: [ ] name: ( "modrian"); type: "application"; targetName: (project.targetPrefixTools + "modrian"); cpp.dynamicLibraries: { var ret = []; if (Qt.core.versionMinor < 4) { // NOTE : prior to Qt5.4 we had to link libGL manually ret.push ("GL"); } return ret; } cpp.cxxLanguageVersion: "c++14" readonly property stringList qmlImportPaths : [sourceDirectory + "/import"]; // equivalent to QML_IMPORT_PATH += $$PWD/import Depends { name: "Qt.quick" } Depends { name: "Qt"; submodules: ["core", "gui", "qml", "quick","testlib","sql"]; } Group{ name: "C++ sources"; files: [ "planning.cpp", "main.cpp", "admin.cpp", "testPlanning.cpp", "user.cpp", "equipement.cpp", "equimenttablemodel.cpp", "palier.cpp", "paliermodel.cpp", "appwrapper.cpp", ] } Group { qbs.install: (product.type === "dynamiclibrary"); fileTagsFilter: product.type; } Group{ name: "C++ headers"; files: [ "admin.h", "appwrapper.h", "datetimevalidator.cpp", "datetimevalidator.h", "equimenttablemodel.h", "manager.cpp", "manager.h", "paliermodel.h", "planning.h", "user.h", "equipement.h", "palier.h", ] } Group { name: "QML files" files: [ "DatePicker.qml", "DateUtils.js", "Planning.qml", "main.qml", "PagePlannification.qml", "qml.qrc", ] } //Depends { name: (project.namePrefixBase + "utils"); } Depends { name: "libqtqmltricks-qtsupermacros"; } Depends { name: "libqtqmltricks-qtqmlmodels"; } Depends { name: "libqtqmltricks-qtquickuielements"; } } }