PDA

View Full Version : Database access from Qt



nimmyj
23rd November 2006, 07:48
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.

sunil.thaha
23rd November 2006, 07:51
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