akkarachai
2nd December 2019, 07:45
QString timess;
QSqlQuery qry;
qry.prepare("SELECT FROM test WHERE time = '"+timess+"'");
if (qry.exec()){
ui->time->setText(timess);
qDebug("timess");
};
This is my code. after I Run ui didn't show anything.
I create timess with qstring and store the time value from database(SQLite) into it's.
But in the time ui (QLable) didn't show anything after I run the process.
:confused:
QSqlQuery qry;
qry.prepare("SELECT FROM test WHERE time = '"+timess+"'");
if (qry.exec()){
ui->time->setText(timess);
qDebug("timess");
};
This is my code. after I Run ui didn't show anything.
I create timess with qstring and store the time value from database(SQLite) into it's.
But in the time ui (QLable) didn't show anything after I run the process.
:confused: