[Solved]: QSqlError(-1, "", "") with SQLITE



  • Hi,

    any idea what could be wrong?

    @ db = QSqlDatabase::addDatabase("QSQLITE");
    qDebug() << db.lastError();@

    -> QSqlError(-1, "", "")

    The code is from my Symbian^3 App with SDK 1.1 (QT 4.7.2)

    I have added this in my .pro file:
    QT += sql
    QTPLUGIN += qsqlite

    thx

    EDIT: QSqlError(-1, "", "") seems to be the error code if there is no error :)
    I had an error in some SQL statement later in the code. Now it works fine.



  • Post solved.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.