Results 1 to 2 of 2

Thread: database disconnected !

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Location
    Sudan
    Posts
    46
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question database disconnected !

    hi every one

    i am coding a program that using MYSQL database.

    the problem is :

    when i change the time or date of the computer while my program is running the MYSQL database disconnect.

    so .. is there any way that i can get a signal when the database disconnect ,or when the computer date or time change ??

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: database disconnected !

    You can fetch the error from QSqlDatabase::lastError() when a query fails.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    tinysoft (5th May 2011)

Similar Threads

  1. Replies: 6
    Last Post: 24th February 2012, 11:17
  2. Status update on Network Disconnected
    By kapoorsudhish in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 12th January 2011, 13:16
  3. Phonon error Disconnected: OK on Ubuntu 9.10
    By IanC in forum Qt Programming
    Replies: 0
    Last Post: 18th August 2010, 01:28
  4. QFtp disconnected from server
    By cutie.monkey in forum Newbie
    Replies: 5
    Last Post: 20th May 2009, 11:46
  5. QTcpSocket - How do I know when it is disconnected ?
    By probine in forum Qt Programming
    Replies: 2
    Last Post: 3rd April 2006, 21:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.