hi jpn .-) thanx in advance for always helping me (or trying to .-)
qDebug gives me: ("QSQLITE")
the code is :
db.setDatabaseName("db");
db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName("db");
To copy to clipboard, switch view to plain text mode
On Windows all works fine. I am using Linux now because I want to use Valgrind (you might remember: the memory leak thread .-) )
seems to be ok ... But I also wonder why I can not open a sqlite database with sqlbrowser when i have crated one with the sqlite3 tool. Could that be a problem with the version?
-----------------------
I works now ... I forgot to add this in the main.cpp:
QMetaObject::invokeMethod(&w,
"addConnection", Qt
::QueuedConnection);
QMetaObject::invokeMethod(&w, "addConnection", Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
data are now loaded ... maybe the main.cpp was overwritten when i created the project. sry, my mistake.
-----------------------
But there seems to be a version problem
I get an SQL error: errDbText: no such function: group_concat
so, i guess I have to compile again with the latest sqlite code. And some characters (ä, ü, etc. ) do not work ...
Bookmarks