Hi Well I wonder to what extent should I save the database (. Sqlite,. Dat,. Sql)? And there's no User or password, which I put in these fields?

I'm using QT4 and SQLite. OS: Windows

thanks.

void Principal::conectarBanco()
{
bancoDeDados = QSqlDatabase::addDatabase("QSQLITE");
bancoDeDados.setDatabaseName("sistema-transporte-db.dat");
bancoDeDados.setHostName("localhost");
bancoDeDados.setPassword("");
bancoDeDados.setUserName("");
bool ok = bancoDeDados.open();
if(!ok)
QMessageBox::critical(0, "Driver Sql Lite", tr("Driver Not Found"));
}