Home > Mobile >  QSqlTableModel how to specify the symbol table
QSqlTableModel how to specify the symbol table

Time:09-25

I use QSqlTableModel signed specified database table, setTable when Unable to find a table, but through the SQL statements can query to the forms, the code is
TableModel=new QSqlTableModel (0 db);
TableModel - & gt; SetTable (" 123.456 ");
TableModel - & gt; SetEditStrategy (QSqlTableModel: : OnManualSubmit);
TableModel - & gt; SetSort (0, Qt: : AscendingOrder);
TableModel - & gt; The select ();

Have anyone can guide it?
  •  Tags:  
  • Qt
  • Related