Seems to work fine for me...

Qt Code:
  1. #include <QtCore>
  2.  
  3. int main() {
  4. QRegExp rx("\\{.*\\}");
  5. QString str = "bla {xxx} bla";
  6. qDebug() << rx.indexIn(str);
  7. return 0;
  8. }
To copy to clipboard, switch view to plain text mode