QSqlQueryModel shows empty table with correct headers.



  • Code:

    QSqlQueryModel *model = new QSqlQueryModel;
    QSqlQuery query;
    query.exec("{CALL syllabi_output}");
    
    model->setQuery(query);
    ui->tableView_4->setModel(model);
    
    //debug
    query.first();
    qDebug() << query.value(0).toString();
    //debug
    

    Debug shows the correct values though.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.