Hallo,
I used qstring find member to find a string.

but it gives error " class QString has no member named :find "

and I followed the qt documentation too.

Here is the code.
I included qstring.h

Qt Code:
  1. if(line.find(QRegExp("DEF"),0) != -1 && line.find(QRegExp("Shape"),0) != -1)
  2. {
  3. line.remove(0,line.find(QRegExp("DEF"),0)+4);
  4.  
  5. if(line.mid(0,line.find(QRegExp("Shape"),0)-1).find(QRegExp("_"),0) != -1)
  6. {
  7. line.remove(line.find(QRegExp("_"),1);
  8. }
  9. }
To copy to clipboard, switch view to plain text mode 

looking forward for ur reply.

thanks.