Code:
QSqlQueryModel *model = new QSqlQueryModel;
QSqlQuery query;
query.exec("{CALL syllabi_output}");
model->setQuery(query);
ui->tableView_4->setModel(model);
query.first();
qDebug() << query.value(0).toString();
Debug shows the correct values though.