Results 1 to 2 of 2

Thread: Database access from Qt

  1. #1
    Join Date
    Nov 2006
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Database access from Qt

    hi,
    I was trying to Access database from Qt dessigner.i created database in MysQl with username root. i could make connections and view my tables in form preview but application got runtime error.Qcursor:: set name :unable to build record ,does table exit.
    warning was an error occured while accessing the database.

  2. #2
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Database access from Qt

    Did you make connection to the database before making any queries ?

    Haviang able to connect to database from the designer does not generate any connection code. So in the main(), connect to database and try again.



    Note. This thread is belongs more to the Qt Programming section. Next time you post a question, please post in the appropriate section
    Last edited by sunil.thaha; 23rd November 2006 at 06:56.
    We can't solve problems by using the same kind of thinking we used when we created them

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

    nimmyj (23rd November 2006)

Similar Threads

  1. Database access from Qt
    By nimmyj in forum General Discussion
    Replies: 1
    Last Post: 16th November 2006, 14:11
  2. Replies: 1
    Last Post: 4th October 2006, 16:05
  3. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50
  4. Filling combobox from database
    By Philip_Anselmo in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2006, 17:53
  5. Save images to database
    By jnk5y in forum Qt Programming
    Replies: 4
    Last Post: 8th May 2006, 19:56

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.