How to replace QRegExp in a string?
问题 I have a string. For example: QString myString = "Today is Tuesday"; The requirement is: when user types a string, if that string is contained in myString , then that part in the myString should be bold, and case insensitive ( Qt::CaseInsensitive ), but the format of myString should remain (upper case characters should be upper case and lower case characters should be lower case). For example: user types: tu -> Today is Tu esday user types: ES -> Today is Tu es day user types: aY -> Tod ay is