Sunday, June 1, 2014

Qt Creator & Mysql

To demonstrate mysql connectivity with Qt ,Let us create a desktop application in qt creator that will add some record to mysql.Design your screen as follows

meanwhile on your database create a table as

CREATE TABLE QT_TEST
(
PName VARCHAR(200),
PCountry VARCHAR(100),
PAddress VARCHAR(500)
)
Lets comeback to our Qt App,In our QT App the Name control is of type lineEdit while Address control is of type TextEdit as it can be multiliner.