sattu
10th January 2011, 11:09
hi everyone,
I want to load a table inside the constructor .But it is not working.The same thing when i do under a push Button clicked it is working.My code is :
QSqlQueryModel *abc =new QSqlQueryModel;
abc->setQuery("select * form User10");
ui->tableView_User10->setModel(abc);
plz give some soln.
I want to load a table inside the constructor .But it is not working.The same thing when i do under a push Button clicked it is working.My code is :
QSqlQueryModel *abc =new QSqlQueryModel;
abc->setQuery("select * form User10");
ui->tableView_User10->setModel(abc);
plz give some soln.