Important: Please read the Qt Code of Conduct -

Get the default MySQL ‘CONNECT_TIMEOUT’ value

  • Qt's doc tell us we can use QSqlDatabase::setConnectOptions() to set the various options for the connection. But how to get the default options of the connection before set them? I tried QSqlDatabase::connectOptions(), but it returns empty string.

    Does Qt support getting the default connection options?

  • Lifetime Qt Champion


    AFAIK, Qt uses default values that one can see in the documentation.

Log in to reply