Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get the default MySQL ‘CONNECT_TIMEOUT’ value
Forum Updated to NodeBB v4.3 + New Features

Get the default MySQL ‘CONNECT_TIMEOUT’ value

Scheduled Pinned Locked Moved Unsolved General and Desktop
sql
2 Posts 2 Posters 844 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    diverger
    wrote on 29 Mar 2018, 09:31 last edited by diverger
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Mar 2018, 21:18 last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      29 Mar 2018, 09:31

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved