Results 1 to 7 of 7

Thread: QTimer and QSqlDatabase Problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTimer and QSqlDatabase Problem

    The only global variable is the reference to the database.

  2. #2
    Join Date
    Jun 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTimer and QSqlDatabase Problem

    OK, I seem to have solved it, but I'm interested to know how.

    Turns out I had another, half written method called mainLoop() that I was going to call later (note: I never called it in my code) which had, as part of it's instructions, a query call and a close call to the DB. If I comment out that method the code works perfectly.
    It's a bit weird, but I'll take it and run.

    Thanks for the help.
    Cheers
    G

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTimer and QSqlDatabase Problem

    Quote Originally Posted by smtgra011 View Post
    Turns out I had another, half written method called mainLoop() that I was going to call later (note: I never called it in my code) which had, as part of it's instructions, a query call and a close call to the DB.
    It's hard to say anything without seeing your code.

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.