I'm developing an application which lets you choose the database connection you want to create (including the SQL Driver).

It works fine, but i would like to set a connection timeout, because I use to connect to a database in a VPN host, and when I don't have the VPN ON, it just hangs there for 30 secs, and I would like to set a different connection timeout.

I've seen that the documentation says to use "setConnectOptions(QString)", but on the Qt Docs i can't find the option to set the timeout.

Any help would be appreciated.

Thanks