Re: sqlbrowser and sqlite
SQLite support is compiled by default. First try what:
outputs? Could you also show use how you call QSqlDatabase::setDatabaseName()?
Re: sqlbrowser and sqlite
hi jpn .-) thanx in advance for always helping me (or trying to .-)
qDebug gives me: ("QSQLITE")
the code is :
Code:
db.setDatabaseName("db");
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:
Code:
QMetaObject::invokeMethod(&w,
"addConnection", Qt
::QueuedConnection);
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 ...