PDA

View Full Version : QString with escape characters



Jeffb
26th April 2010, 13:33
Is there a function in QT that takes a normal string and returns it with escape characters ready for a database query?
If not, does anyone have the code for one?

Cheers
Jeff

Lykurg
26th April 2010, 14:06
See QSqlQuery::prepare() and QSqlQuery::bindValue().