Code:

Qt Code:
  1. QSqlQuery query;
  2. query.exec("{CALL syllabi_output}");
  3.  
  4. model->setQuery(query);
  5. ui->tableView_4->setModel(model);
  6.  
  7. //debug
  8. query.first();
  9. qDebug() << query.value(0).toString();
  10. //debug
To copy to clipboard, switch view to plain text mode 

Debug shows the correct values though.