[Qt-interest] table values are not shown in database.

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Sat Jun 25 17:27:40 CEST 2011


*QSqlTableModel *model = new QSqlTableModel(this, db); // db is the
database successfully opened.*

*model->setTable("things");*

*QTableView *view = new QTableView;*

*view->setModel(model);*

*view->show();*
With this pice of code I can only see the header names of the table but down
there some values are not seen like this only book and qty but there are
some 3 values are there i cannot see them. PLease give me some suggestions.

 Book               qty



-- 
Thanks & Regards
Sujan Dasmahapatra
B.E. (Aeronautics)
Bangalore, India
Ph:91-9900839788
mail id : sujan.dasmahapatra at gmail.com
yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
icq # 556023244
skype:sujan.dasmahapatra at skyepe.com
msn: sujan.dasmahapatra at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110625/f3f9d4f6/attachment.html 


More information about the Qt-interest-old mailing list