Alterações no Qt Print Support
no Qt 6 são resultado de um esforço consciente para tornar a estrutura mais eficiente e fácil de usar.
Procuramos manter a compatibilidade binária e de código-fonte para todas as APIs públicas em cada versão. No entanto, algumas alterações foram inevitáveis no esforço de tornar o Qt uma estrutura melhor.
Neste tópico, resumimos essas alterações no Qt Print Support e fornecemos orientações para lidar com elas.
Consolidação geral da API
As diversas enums e tipos para page sizes, margens e orientação foram consolidados. QPrinter As APIs para definir tamanhos de papel e margens explicitamente foram removidas; use QPagedPaintDevice::setPageLayout(), QPagedPaintDevice::setPageSize(), QPagedPaintDevice::setPageOrientation() e QPagedPaintDevice::setPageMargins() em vez delas.
© 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.