QtSqlDatabase problems with Symbian



  • I'm trying to use the same code that works in my desktop and maemo platform into the symbian OS, but it is not working.
    I'm showing below the snipped of the code:

    @
    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
    db.setDatabaseName(sFile);
    qDebug()<<"DB open: "<<m_db.open();
    @

    Result: "DB open: false"

    Is there anything to take in consideration in Symbian to create a database file?



  • No consideration, but you must do that :

    • add sql in pro file.
    • sFile is a right path for your db.

Log in to reply
 

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