PDA

View Full Version : How to code for multiple sql table to view in QTableView ?



innobleday
15th March 2010, 11:55
Hi All,
I have a problem with Qt. I have a sql code like this

SELECT * FROM `action`=a,`practiceaction`=b where b.ID = 23 and b.actionid=a.actionid;
How to code to view it in QTableView.

Thanks.

toutarrive
15th March 2010, 13:18
Have a look at http://doc.qt.nokia.com/4.6/qsqlquerymodel.html
and http://doc.qt.nokia.com/4.6/qsqltablemodel.html