Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[Solved]QString, QSqlQueryModel ("message + QString") how?

$
0
0
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 ‘ ‘ ?

Viewing all articles
Browse latest Browse all 18427

Trending Articles