[Interest] How to save QTextEdit content by QSqlQuery

Andre Somers andre at familiesomers.nl
Sat Jan 26 16:43:08 CET 2013


Op 26-1-2013 0:51, M. Bashir Al-Noimi schreef:
> Hi guys,
>
> I want to save the content of QTextEdit to the database through 
> QSqlQuery... how can I do that?
>
> Running textEdit->toHtml() won't work because the returned string has 
> many illegal characters to execute into sql.
As long as you use the binding feature of QSqlQuery to put your HTML in 
your query, as opposed to trying to build the sting manually, you should 
be fine.

André


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130126/1b7ed321/attachment.html>


More information about the Interest mailing list