You need to include `<QRegExp>`.