Home > Mobile >  Qt, how to extract each character in QTextEdit?
Qt, how to extract each character in QTextEdit?

Time:01-12

I have a QTextEdit text, there is some string, I still otherwise an empty string array, if I want to a character array I copy from QTextEdit text characters [QTextEdit have I don't want some of the characters in the text, there is need to modify the replacement of characters], what should I do? Tried a today afternoon, seemingly in QTextEdit can find each processing function of the characters, since the consult enthusiastic bosses here, thank you for reading!

CodePudding user response:

You can use the text () to obtain all the characters, use regular expressions to handle then put it in
  •  Tags:  
  • Qt