Exemplos de layout

Caixa de diálogo que demonstra os tipos de layout horizontal, em grade e em formulário

O Qt utiliza uma abordagem baseada em layouts para o gerenciamento de widgets. Os widgets são dispostos nas posições ideais nas janelas com base em regras simples de layout, o que resulta em uma aparência e comportamento consistentes. Layouts personalizados oferecem maior controle sobre as posições e os tamanhos dos widgets filhos.

Esses exemplos do Qt demonstram várias maneiras de configurar widgets em layouts.

Veja também Gerenciamento de layout.

© 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.