Selecionar estilo de fim de linha
Para alternar entre finais de linha do Windows (CRLF) e finais de linha do Unix (LF), selecione o estilo de final de linha na barra de ferramentas do editor (3) no modo “ Edit ”.

Para ocultar esse campo, vá para “ Preferences ” > “ Text Editor ” > “ Display ” e desmarque “ Display file line ending ”.
Definir estilo padrão
Para definir os finais de linha a serem usados por padrão em todos os projetos, acesse Preferences > Text Editor > Behavior e selecione o estilo de final de linha em Default line endings.

Para definir os finais de linha a serem usados em um projeto, acesse Projects > Project Settings > Editor.

Veja também Como: Editar código, Definir configurações do editor e Editar código.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.