model=new QSqlQueryModel; model->setQuery("Select Id_goods || Name_goods from tabtab"); ui->listView->setModel(model);