Como excluir automaticamente o caractere de espaço no LineEdit

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hercules

I am trying to get name of user by the EditLine, but i want that don’t contains espaces. when the user write space, automatic delete them. how i am do it?