I want to select the email in a QTextEdit widget and then highlight each email . But I found that select() funciton only support 4 types: Document, BlockUnderCursor, LineUnderCursor and WordUnderCursor.
So, is there any other way can only select an email?
My input example in QTextEdit is
email@abc.com , b@acb.com
I know that I can use QTextCursor to select the text .
Qt Code:
To copy to clipboard, switch view to plain text mode
using email@abc.com, b@acb.com as an example, it would return email , abc, com , b , acb ,com.
I want to return the text like email@abc.com and b@acb.com.
How can I do that? Please give me some helps. Thanks!
Bookmarks