I'm using Qt + Sqlite3 at Kubuntu 11.04.

When i execute the program from QtCreator or Shell, it runs ok.
The problem is when i try execute it (compiled) by double-click. It can not receive the data from database file. Its connect with the database file but doesnt return the data.

I'm using this to connect:
db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName("dataBase.db");
db.open();

This works fine.

But when i run this, its return nothing:
QSqlQuery resultado = db.exec("select * from pessoas");
while (resultado.next())
ui->plainTextEdit->appendPlainText(resultado.value(0).toString() +
" - " + resultado.value(1).toString());

Any idea about what is happening?