Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved]: QSqlError(-1, "", "") with SQLITE
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 6.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BerndS
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on last edited by
      #2

      Post solved.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved