QSQLITE always works because it doesn't connect to a remote database, but creates a local one on your computer. See http://www.sqlite.org/ for more info on SQLite.
As Jacek says you need to know what kind of database you're trying to connect to. Is it PostgreSql or MySql or something else? And you need to set the correct port as well, unless the database uses its default port.
If it's a MySql database as the port number suggests (3306) you need to build the QMYSQL driver and use this.
Bookmarks