rajesh
20th November 2009, 08:17
How to check whole word in QString ?
In Find Files example given in Qt assistance , How to add Match whole word setting.
QFile file(directory.absoluteFilePath(files[i]));
if (file.open(QIODevice::ReadOnly)) {
QString line;
QTextStream in(&file);
while (!in.atEnd()) {
if (progressDialog.wasCanceled())
break;
line = in.readLine();
if (line.contains(text)) -->How to check whole word in QString ?:confused:
{
foundFiles << files[i];
break;
}
}
}
Must Watch::eek: See how we can connect digital world objects to our day to day life…. (http://www.tech2fame.info/2009/11/pranav-mistry-thrilling-potential-of.html)
In Find Files example given in Qt assistance , How to add Match whole word setting.
QFile file(directory.absoluteFilePath(files[i]));
if (file.open(QIODevice::ReadOnly)) {
QString line;
QTextStream in(&file);
while (!in.atEnd()) {
if (progressDialog.wasCanceled())
break;
line = in.readLine();
if (line.contains(text)) -->How to check whole word in QString ?:confused:
{
foundFiles << files[i];
break;
}
}
}
Must Watch::eek: See how we can connect digital world objects to our day to day life…. (http://www.tech2fame.info/2009/11/pranav-mistry-thrilling-potential-of.html)