Query in QT doesn't get any data – Postgresql
This is rows in my table. With this code, I get "in" in console. QSqlQuery qry; qry.prepare("SELECT * FROM user"); qry.exec(); if(qry.size() > 0) qInfo() << "in"; else qInfo() << "error"; But with this code, I get "error". QSqlQuery qry;…