So I want to do a search in a database. I have a QLineEdit, I get the value from there (value is something like: nokia) then I want to do this:
QSqlQuerryModel qry;
QString string = ui->LineEdit->text();
qry->setQuerry("Select something1, something2 from aTable where something like '(qstring that is nokia)');
I tried with :string and it doesn’t work.
How can I append the string to the message but wrapped with ‘ ‘ ?
↧