Q:

Qt pattern recognition of segments of a string

does Qt have the ability to recognize that for instance you are writing a list of mails and after each mail to turn it into a widget with an x button (sort of like Gmail does). Is there some built-in functionality for this or must it be made from the ground up?

A:

I think It's easier to use LineEdit and listen to it's onchange signal. In on change slot search for email inside LineEdit text using RegExp. If you find an appropriate email (maybe surrounded with spaces) then add a Label with the delete icon in front of LineEdit and remove added email from LineEdit text. That's all!

