cecchinoSMI
6th March 2014, 13:53
Hi to all,
I need a suggest to how design new code to implement an operation.
Starting from the fact that I'm able to use the querys fora a database using qt, I need a way to manage this data.
For example with this code:
this->model=new QSqlQueryModel();
model->setQuery("SELECT [DispositivoId],[Descrizione] FROM [IfaCOM].[dbo].[Dispositivo];");
ui->tableView->setModel(model);
I show the dataset present in the table "Dispositivo" in the tableView object.
Now I want to use the single values contained in the table for my personal porpouses.
How I can do it?
Thank you in advance.
I need a suggest to how design new code to implement an operation.
Starting from the fact that I'm able to use the querys fora a database using qt, I need a way to manage this data.
For example with this code:
this->model=new QSqlQueryModel();
model->setQuery("SELECT [DispositivoId],[Descrizione] FROM [IfaCOM].[dbo].[Dispositivo];");
ui->tableView->setModel(model);
I show the dataset present in the table "Dispositivo" in the tableView object.
Now I want to use the single values contained in the table for my personal porpouses.
How I can do it?
Thank you in advance.