[Qt-interest] "%" characters in QStrings create havoc

Duane Hebert spoo at flarn.com
Fri Feb 26 18:52:51 CET 2010


>It also does not cure my crash in my main application -- which does not involve my logging classes as I previously claimed.  In my 
>app, this line causes a crash >all by itself:

>QString clause = QString(" WHERE (name LIKE '%1') OR (email LIKE '%2') ")
>                    .arg(exp1).arg(exp2);

what if you change this last line to

.arg(exp1,epx2);






More information about the Qt-interest-old mailing list