Results 1 to 3 of 3

Thread: QSqlite issues

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QSqlite issues

    First listing line 1 creates a connection named "timing". Second listing line 4 creates a query that is using the default database, not the named database connection "timing". In your program there must be a default database, and that is where the timing table is being created.

    Change line 4 to read:
    Qt Code:
    1. QSqlQuery timeQuery(timeDatabase);
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to ChrisW67 for this useful post:

    duave (4th April 2011)

Similar Threads

  1. QSqlite changes between 4.3 and 4.7
    By LKIM in forum Qt Programming
    Replies: 0
    Last Post: 22nd March 2011, 19:50
  2. QSQlite driver
    By praveen_g in forum Newbie
    Replies: 6
    Last Post: 18th November 2009, 08:58
  3. QSqlite in QT4
    By sophister in forum Qt Programming
    Replies: 26
    Last Post: 5th April 2009, 12:52
  4. QSQLITE Questions
    By larry104 in forum Qt Programming
    Replies: 9
    Last Post: 24th April 2007, 23:54
  5. QSqlite problem
    By dragon in forum Qt Programming
    Replies: 2
    Last Post: 11th April 2007, 02:02

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.