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. Command or Connection Timeout PGSQL
Forum Updated to NodeBB v4.3 + New Features

Command or Connection Timeout PGSQL

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.1k 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.
  • Z Offline
    Z Offline
    zeroptr
    wrote on 26 Sept 2016, 13:55 last edited by
    #1

    Hi All,

    I have an desktop app runs with QT5.6 and PostgreSQL 9.5 under linux.. I have a problem that when I run a query from myclient and pull out ethernet cable application just freeze with no Error message.. After I plug in the Ethernet Cable.. After a while apllication starts to run..

    How can I set QueryTimeout and connection time out with QT5.6 to postgreSQL ??

    My application runs 7/24 so this is very important to me..

    Nice Days & Regards..
    Burak

    Linux Mint 20.04 64 Bit QT6.0.1

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Sept 2016, 20:56 last edited by
      #2

      Hi,

      AFAIK, you are looking for QSqlDatabase:: setConnectOptions.

      Hope it helps

      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
      2
      • Z Offline
        Z Offline
        zeroptr
        wrote on 27 Sept 2016, 06:38 last edited by
        #3

        Thanks @SGaist you are the qtst man.. :)

        Linux Mint 20.04 64 Bit QT6.0.1

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Sept 2016, 06:54 last edited by
          #4

          You're welcome !

          If that answers your question then please mark the thread as solved using the "Topic Tools" button so that other forum members may know a solution has been found :)

          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

          2/4

          26 Sept 2016, 20:56

          • Login

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