hi,

according to manual (QSqlDatabase::addDatabase()):
and subsequent calls to database() without the connection name argument will return the default connection. If a connectionName is provided here, use database(connectionName) to retrieve the connection.
if i would like to retrieve the database connection I need to use the
Qt Code:
  1. database()
To copy to clipboard, switch view to plain text mode 

i'm not sure if i just need to use
Qt Code:
  1. database()
To copy to clipboard, switch view to plain text mode 
or
Qt Code:
  1. QSqlDatabase::database()
To copy to clipboard, switch view to plain text mode 
- which doesn't exists

or what else?

could you please give me an example please? I don't have a name for my connection defined.
thanks.