ist dass normal....?
wahr es mit #include <Q3CString> besser?
Code: Alles auswählen
/* for (int i ..... habe 10% mit space und werden nicht gefunden..*/
if (txtw != FullTrimSpace(txtw)) {
ErrorConfig("diff found .... ");
}
/* for end */
QString Setting_Gui::FullTrimSpace(QString cutestrings)
{
QByteArray cleanpolice;
cleanpolice.append(cutestrings.trimmed()); /* QString trimmed start & end */
cleanpolice.trimmed(); /* porting suggest3=>4 Q3CString::stripWhiteSpace() QByteArray::trimmed() */
return cleanpolice.data();
}
was ich noch versucht habe...
bool QChar::isSpace () const
aber ein QString zu QChar kommt auch nichts gescheid raus....
Code: Alles auswählen
for (int i = 0; i < cutestrings.size(); ++i) {
QString line =cutestrings.at(i)
if (line !=" ") {
newplace =line + newplace;
qDebug() << "### str line " << line;
}
}