@@ -54,7 +54,7 Widget::Widget(QWidget *parent) | |||||
54 |
|
54 | |||
55 | // connect to the database |
|
55 | // connect to the database | |
56 | db = QSqlDatabase::addDatabase("QSQLITE"); |
|
56 | db = QSqlDatabase::addDatabase("QSQLITE"); | |
57 | db.setDatabaseName("gdpData"); |
|
57 | db.setDatabaseName("../examle/gdpbarchart/gdpData"); | |
58 | if(!db.open()) |
|
58 | if(!db.open()) | |
59 | { |
|
59 | { | |
60 | qDebug() << "could not open database. SQLite db file missing (?)"; |
|
60 | qDebug() << "could not open database. SQLite db file missing (?)"; |
General Comments 0
You need to be logged in to leave comments.
Login now