Criar arquivos de formulário de interface do usuário

Use o Qt Widgets Designer para projetar UIs baseadas em widgets.

Para adicionar um novo arquivo .ui ao projeto, vá para Project > Add New Item > Installed > Visual C++ > Qt > Qt Widgets Form File.

Assistente de classe do Qt Widgets

Normalmente, você precisa envolver o código gerado para o arquivo de formulário em uma subclasse QWidget para adicionar sinais ou slots a ele. Portanto, o Qt UI Tools cria um arquivo .h e .cpp para você, juntamente com um formulário de interface do usuário vazio.

Consulte também Tutorial: aplicativo Qt Widgets , Iniciar o Qt Widgets Designer e Manual doQt Widgets Designer.

© 2026 The Qt Company Ltd. 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.